[RFC PATCH 3/4] PCI: qcom: call phy_set_mode_ext()
Dmitry Baryshkov
dmitry.baryshkov at linaro.org
Tue Jul 19 13:06:25 PDT 2022
Call phy_set_mode_ext() to notify the PHY driver that the PHY is being
used in the RC mode.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov at linaro.org>
---
drivers/pci/controller/dwc/pcie-qcom.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c
index 5ed164c2afa3..50bf3fefef7a 100644
--- a/drivers/pci/controller/dwc/pcie-qcom.c
+++ b/drivers/pci/controller/dwc/pcie-qcom.c
@@ -1486,6 +1486,10 @@ static int qcom_pcie_host_init(struct dw_pcie_rp *pp)
if (ret)
return ret;
+ ret = phy_set_mode_ext(pcie->phy, PHY_MODE_PCIE, 0);
+ if (ret)
+ return ret;
+
ret = phy_power_on(pcie->phy);
if (ret)
goto err_deinit;
--
2.35.1
More information about the linux-phy
mailing list