diff options
| author | Dmitry Baryshkov <[email protected]> | 2022-09-27 09:22:06 +0000 |
|---|---|---|
| committer | Vinod Koul <[email protected]> | 2022-10-17 07:44:24 +0000 |
| commit | a84ed1919fb3fc767ae3aad13bbff8ea8eaceedd (patch) | |
| tree | a73bd498a70210ceabf152a18ea35546234ca1e6 /drivers/pci/controller/dwc/pcie-qcom-ep.c | |
| parent | PCI: qcom: Setup PHY to work in RC mode (diff) | |
| download | kernel-a84ed1919fb3fc767ae3aad13bbff8ea8eaceedd.tar.gz kernel-a84ed1919fb3fc767ae3aad13bbff8ea8eaceedd.zip | |
PCI: qcom-ep: Setup PHY to work in EP mode
Call phy_set_mode_ext() to notify the PHY driver that the PHY is being
used in the EP mode.
Reviewed-by: Manivannan Sadhasivam <[email protected]>
Reviewed-by: Jingoo Han <[email protected]>
Reviewed-by: Johan Hovold <[email protected]>
Signed-off-by: Dmitry Baryshkov <[email protected]>
Acked-by: Lorenzo Pieralisi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc/pcie-qcom-ep.c')
| -rw-r--r-- | drivers/pci/controller/dwc/pcie-qcom-ep.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/pci/controller/dwc/pcie-qcom-ep.c b/drivers/pci/controller/dwc/pcie-qcom-ep.c index 6d0d1b759ca2..19b32839ea26 100644 --- a/drivers/pci/controller/dwc/pcie-qcom-ep.c +++ b/drivers/pci/controller/dwc/pcie-qcom-ep.c @@ -14,6 +14,7 @@ #include <linux/delay.h> #include <linux/gpio/consumer.h> #include <linux/mfd/syscon.h> +#include <linux/phy/pcie.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/pm_domain.h> @@ -268,6 +269,10 @@ static int qcom_pcie_enable_resources(struct qcom_pcie_ep *pcie_ep) if (ret) goto err_disable_clk; + ret = phy_set_mode_ext(pcie_ep->phy, PHY_MODE_PCIE, PHY_MODE_PCIE_EP); + if (ret) + goto err_phy_exit; + ret = phy_power_on(pcie_ep->phy); if (ret) goto err_phy_exit; |
