aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/dwc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/controller/dwc')
-rw-r--r--drivers/pci/controller/dwc/pci-dra7xx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/pci/controller/dwc/pci-dra7xx.c b/drivers/pci/controller/dwc/pci-dra7xx.c
index 5c72acb49c11..5d5844fc143e 100644
--- a/drivers/pci/controller/dwc/pci-dra7xx.c
+++ b/drivers/pci/controller/dwc/pci-dra7xx.c
@@ -504,6 +504,10 @@ static int dra7xx_pcie_enable_phy(struct dra7xx_pcie *dra7xx)
504 int i; 504 int i;
505 505
506 for (i = 0; i < phy_count; i++) { 506 for (i = 0; i < phy_count; i++) {
507 ret = phy_set_mode(dra7xx->phy[i], PHY_MODE_PCIE);
508 if (ret < 0)
509 goto err_phy;
510
507 ret = phy_init(dra7xx->phy[i]); 511 ret = phy_init(dra7xx->phy[i]);
508 if (ret < 0) 512 if (ret < 0)
509 goto err_phy; 513 goto err_phy;