bcm53xx: early support for Netgear R8000
[openwrt/openwrt.git] / target / linux / bcm53xx / patches-3.14 / 150-pci-do-not-probe-too-early.patch
1 From cf72936c001056de1cfcb27dd9a232f5484ec59c Mon Sep 17 00:00:00 2001
2 From: Hauke Mehrtens <hauke@hauke-m.de>
3 Date: Thu, 29 May 2014 20:54:15 +0200
4 Subject: [PATCH 12/17] pci: do not probe too early
5
6 Probing is done before the PCIe bridge is fully activated and the
7 address spaces does not get assigned to the PCIe devices. Without the
8 address space the driver can not register to this device. With this
9 patch the driver reregistration is done later.
10
11 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
12 ---
13 drivers/pci/probe.c | 5 ++++-
14 1 file changed, 4 insertions(+), 1 deletion(-)
15
16 --- a/drivers/pci/probe.c
17 +++ b/drivers/pci/probe.c
18 @@ -1915,7 +1915,10 @@ struct pci_bus *pci_scan_root_bus(struct
19 if (!found)
20 pci_bus_update_busn_res_end(b, max);
21
22 - pci_bus_add_devices(b);
23 + /* this should be done in arch/arm/kernel/bios32.c, because the
24 + resources for the PCI devices are initilized later and doing
25 + it here will fail. */
26 + /* pci_bus_add_devices(b); */
27 return b;
28 }
29 EXPORT_SYMBOL(pci_scan_root_bus);