imx6: add initial 3.12 support
[openwrt.git] / target / linux / imx6 / patches-3.12 / 0033-PCI-imx6-increase-link-startup.patch
1 From 11e8d0ed8cc3b415767961555efc2885791a9391 Mon Sep 17 00:00:00 2001
2 From: Tim Harvey <tharvey@gateworks.com>
3 Date: Thu, 17 Oct 2013 15:57:28 -0700
4 Subject: [PATCH 4/5] PCI: imx6: increase link startup
5
6 An increase link startup delay is required when certain PCI switches are
7 attached to the root complex.
8
9 Signed-off-by: Tim Harvey <tharvey@gateworks.com>
10 ---
11  drivers/pci/host/pci-imx6.c |    2 +-
12  1 file changed, 1 insertion(+), 1 deletion(-)
13
14 --- a/drivers/pci/host/pci-imx6.c
15 +++ b/drivers/pci/host/pci-imx6.c
16 @@ -318,7 +318,7 @@ static void imx6_pcie_host_init(struct p
17         while (!dw_pcie_link_up(pp)) {
18                 usleep_range(100, 1000);
19                 count++;
20 -               if (count >= 10) {
21 +               if (count >= 200) {
22                         dev_err(pp->dev, "phy link never came up\n");
23                         dev_dbg(pp->dev,
24                                 "DEBUG_R0: 0x%08x, DEBUG_R1: 0x%08x\n",