summaryrefslogtreecommitdiffstats
path: root/target/linux/bcm53xx/patches-3.14/150-pci-do-not-probe-too-early.patch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2014-05-29 19:25:40 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2014-05-29 19:25:40 +0000
commitcdc7ea333719e9896da1440f6bf0f0178023797e (patch)
treee601d47af81255f304cd77b310889ea3ccdf346f /target/linux/bcm53xx/patches-3.14/150-pci-do-not-probe-too-early.patch
parent50b663de47776e58c790488f6da914ce77eb5347 (diff)
downloadmaster-31e0f0ae-cdc7ea333719e9896da1440f6bf0f0178023797e.tar.gz
master-31e0f0ae-cdc7ea333719e9896da1440f6bf0f0178023797e.tar.bz2
master-31e0f0ae-cdc7ea333719e9896da1440f6bf0f0178023797e.zip
bcm53xx: add support for the PCIe controller
This patch adds support for the PCIe controller In addition to the PCIe controller a sprom is now provided by a device tree driver to bcma from some nvram. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 40880
Diffstat (limited to 'target/linux/bcm53xx/patches-3.14/150-pci-do-not-probe-too-early.patch')
-rw-r--r--target/linux/bcm53xx/patches-3.14/150-pci-do-not-probe-too-early.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/target/linux/bcm53xx/patches-3.14/150-pci-do-not-probe-too-early.patch b/target/linux/bcm53xx/patches-3.14/150-pci-do-not-probe-too-early.patch
new file mode 100644
index 0000000000..23e8a02b19
--- /dev/null
+++ b/target/linux/bcm53xx/patches-3.14/150-pci-do-not-probe-too-early.patch
@@ -0,0 +1,29 @@
+From ea422113a5d2778347db6136d95f45a50e2f2d29 Mon Sep 17 00:00:00 2001
+From: Hauke Mehrtens <hauke@hauke-m.de>
+Date: Thu, 29 May 2014 20:54:15 +0200
+Subject: [PATCH 13/15] pci: do not probe too early
+
+Probing is done before the PCIe bridge is fully activated and the
+address spaces does not get assigned to the PCIe devices. Without the
+address space the driver can not register to this device. With this
+patch the driver reregistration is done later.
+
+Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
+---
+ drivers/pci/probe.c | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+--- a/drivers/pci/probe.c
++++ b/drivers/pci/probe.c
+@@ -1912,7 +1912,10 @@ struct pci_bus *pci_scan_root_bus(struct
+ if (!found)
+ pci_bus_update_busn_res_end(b, max);
+
+- pci_bus_add_devices(b);
++ /* this should be done in arch/arm/kernel/bios32.c, because the
++ resources for the PCI devices are initilized later and doing
++ it here will fail. */
++ /* pci_bus_add_devices(b); */
+ return b;
+ }
+ EXPORT_SYMBOL(pci_scan_root_bus);