diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2015-06-02 23:21:11 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2015-06-10 20:52:28 +0200 |
commit | 30fb7ba6605671e575b6a7a2e69fe153d6d20141 (patch) | |
tree | 9cfe58c28ddc907acc2dc5a97471e7eef558921a /drivers/pci | |
parent | PCI: imx6: Rename imx6_pcie_start_link() to imx6_pcie_establish_link() (diff) | |
download | linux-30fb7ba6605671e575b6a7a2e69fe153d6d20141.tar.xz linux-30fb7ba6605671e575b6a7a2e69fe153d6d20141.zip |
PCI: dra7xx: Use dw_pcie_link_up() consistently
We already use dw_pcie_link_up() once in dra7xx_pcie_establish_link(), but
we duplicate its code later. Use dw_pcie_link_up() for consistency. No
functional change.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Acked-by: Pratyush Anand <pratyush.anand@gmail.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/host/pci-dra7xx.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pci/host/pci-dra7xx.c b/drivers/pci/host/pci-dra7xx.c index 2d57e19a2cd4..e3d15d7875c2 100644 --- a/drivers/pci/host/pci-dra7xx.c +++ b/drivers/pci/host/pci-dra7xx.c @@ -107,8 +107,7 @@ static int dra7xx_pcie_establish_link(struct pcie_port *pp) dra7xx_pcie_writel(dra7xx, PCIECTRL_DRA7XX_CONF_DEVICE_CMD, reg); while (retries--) { - reg = dra7xx_pcie_readl(dra7xx, PCIECTRL_DRA7XX_CONF_PHY_CS); - if (reg & LINK_UP) + if (dw_pcie_link_up(pp)) break; usleep_range(10, 20); } |