Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -2
+1 -2
drivers/pci/host/pci-dra7xx.c
··· 107 107 dra7xx_pcie_writel(dra7xx, PCIECTRL_DRA7XX_CONF_DEVICE_CMD, reg); 108 108 109 109 while (retries--) { 110 - reg = dra7xx_pcie_readl(dra7xx, PCIECTRL_DRA7XX_CONF_PHY_CS); 111 - if (reg & LINK_UP) 110 + if (dw_pcie_link_up(pp)) 112 111 break; 113 112 usleep_range(10, 20); 114 113 }