From: Marek Vasut Date: Wed, 23 Oct 2013 05:12:18 +0000 (-0700) Subject: PCI: imx6: Increase link startup timeout X-Git-Tag: v3.13-rc1~95^2~6^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=017f10e1c78e14d48be7a28f2c33a32dae15fee5;p=thirdparty%2Flinux.git PCI: imx6: Increase link startup timeout 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 Signed-off-by: Bjorn Helgaas Acked-by: Tim Harvey Acked-by: Shawn Guo --- diff --git a/drivers/pci/host/pci-imx6.c b/drivers/pci/host/pci-imx6.c index 7426ad961b817..baafb397a698b 100644 --- a/drivers/pci/host/pci-imx6.c +++ b/drivers/pci/host/pci-imx6.c @@ -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",