[PATCH v3 1/9] phy: define submodes for PCIe PHYs

Vinod Koul vkoul at kernel.org
Fri Sep 23 23:18:15 PDT 2022


On 09-09-22, 12:14, Dmitry Baryshkov wrote:
> Define two submodes to be used for the PCIe PHYs, where required.
> 
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov at linaro.org>
> ---
>  include/linux/phy/phy.h | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h
> index b1413757fcc3..bd60c1a72988 100644
> --- a/include/linux/phy/phy.h
> +++ b/include/linux/phy/phy.h
> @@ -45,6 +45,15 @@ enum phy_mode {
>  	PHY_MODE_DP
>  };
>  
> +/*
> + * Submodes for the PHY_MODE_PCIE, allowing the host to select between RC (Root
> + * Complex) and EP (End Point) PHY modes.
> + */
> +enum {
> +	PHY_SUBMODE_PCIE_RC,
> +	PHY_SUBMODE_PCIE_EP,
> +};

This can be dropped see include/linux/phy/pcie.h


> +
>  enum phy_media {
>  	PHY_MEDIA_DEFAULT,
>  	PHY_MEDIA_SR,
> -- 
> 2.35.1

-- 
~Vinod



More information about the linux-phy mailing list