aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/imx6/patches-3.10/0033-PCI-imx6-increase-link-startup.patch
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2013-10-23 22:16:03 +0000
committerLuka Perkov <luka@openwrt.org>2013-10-23 22:16:03 +0000
commit0189f775172ab30e83225c25a11cca286ba15145 (patch)
tree8bd2d84e4d8d7038581631e1fd25374bfb66bccd /target/linux/imx6/patches-3.10/0033-PCI-imx6-increase-link-startup.patch
parentfbfc1761158ed25e1a19dae084b121b16daf2a17 (diff)
downloadmaster-187ad058-0189f775172ab30e83225c25a11cca286ba15145.tar.gz
master-187ad058-0189f775172ab30e83225c25a11cca286ba15145.tar.bz2
master-187ad058-0189f775172ab30e83225c25a11cca286ba15145.zip
imx6: pcie driver fixups
Add upstream patches needed for PCIe through a switch. Signed-off-by: Tim Harvey <tharvey@gateworks.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38511 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/imx6/patches-3.10/0033-PCI-imx6-increase-link-startup.patch')
-rw-r--r--target/linux/imx6/patches-3.10/0033-PCI-imx6-increase-link-startup.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/target/linux/imx6/patches-3.10/0033-PCI-imx6-increase-link-startup.patch b/target/linux/imx6/patches-3.10/0033-PCI-imx6-increase-link-startup.patch
new file mode 100644
index 0000000000..a94a166908
--- /dev/null
+++ b/target/linux/imx6/patches-3.10/0033-PCI-imx6-increase-link-startup.patch
@@ -0,0 +1,24 @@
+From 11e8d0ed8cc3b415767961555efc2885791a9391 Mon Sep 17 00:00:00 2001
+From: Tim Harvey <tharvey@gateworks.com>
+Date: Thu, 17 Oct 2013 15:57:28 -0700
+Subject: [PATCH 4/5] PCI: imx6: increase link startup
+
+An increase link startup delay is required when certain PCI switches are
+attached to the root complex.
+
+Signed-off-by: Tim Harvey <tharvey@gateworks.com>
+---
+ drivers/pci/host/pci-imx6.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- 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 p
+ 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",