1 From ea422113a5d2778347db6136d95f45a50e2f2d29 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 13/15] pci: do not probe too early
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.
11 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
13 drivers/pci/probe.c | 5 ++++-
14 1 file changed, 4 insertions(+), 1 deletion(-)
16 --- a/drivers/pci/probe.c
17 +++ b/drivers/pci/probe.c
18 @@ -1912,7 +1912,10 @@ struct pci_bus *pci_scan_root_bus(struct
20 pci_bus_update_busn_res_end(b, max);
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); */
29 EXPORT_SYMBOL(pci_scan_root_bus);