Message ID | 20220909091433.3715981-2-dmitry.baryshkov@linaro.org |
---|---|
State | New |
Headers | show |
Series | PCI: qcom: Support using the same PHY for both RC and EP | expand |
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@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
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, +}; + enum phy_media { PHY_MEDIA_DEFAULT, PHY_MEDIA_SR,
Define two submodes to be used for the PCIe PHYs, where required. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> --- include/linux/phy/phy.h | 9 +++++++++ 1 file changed, 9 insertions(+)