pcie_imx: increment timeout for link up
authorStefano Babic <sbabic@denx.de>
Mon, 6 Jun 2016 09:14:19 +0000 (11:14 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 12 Jul 2016 15:58:48 +0000 (17:58 +0200)
On some boards, the current 20ms timeout
is hit. Increase it to 40mS.

Signed-off-by: Stefano Babic <sbabic@denx.de>
drivers/pci/pcie_imx.c

index c14bb0aa829d2a34e99afdfc54437e3eb4656f3f..732d59d711071df9d5155b51b4b02530c2924768 100644 (file)
@@ -595,7 +595,7 @@ static int imx_pcie_link_up(void)
        while (!imx6_pcie_link_up()) {
                udelay(10);
                count++;
-               if (count >= 2000) {
+               if (count >= 4000) {
 #ifdef CONFIG_PCI_SCAN_SHOW
                        puts("PCI:   pcie phy link never came up\n");
 #endif