]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
PCI: imx6: Increase link startup timeout
authorMarek Vasut <marex@denx.de>
Wed, 23 Oct 2013 05:12:18 +0000 (22:12 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 29 Oct 2013 22:17:02 +0000 (16:17 -0600)
A longer link startup timeout is required when certain PCI switches are
attached to the root complex.  This was tested with a Pericom switch
and a PLX switch.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Tim Harvey <tharvey@gateworks.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
drivers/pci/host/pci-imx6.c

index 7426ad961b817bf98bcabc7b117bb84ef6840130..baafb397a698bfa8133582dedd02903fc27b8cfa 100644 (file)
@@ -318,7 +318,7 @@ static void imx6_pcie_host_init(struct pcie_port *pp)
        while (!dw_pcie_link_up(pp)) {
                usleep_range(100, 1000);
                count++;
-               if (count >= 10) {
+               if (count >= 200) {
                        dev_err(pp->dev, "phy link never came up\n");
                        dev_dbg(pp->dev,
                                "DEBUG_R0: 0x%08x, DEBUG_R1: 0x%08x\n",