150-pci-do-not-probe-too-early.patch 1.0 KB

1234567891011121314151617181920212223242526272829
  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. Probing is done before the PCIe bridge is fully activated and the
  6. address spaces does not get assigned to the PCIe devices. Without the
  7. address space the driver can not register to this device. With this
  8. patch the driver reregistration is done later.
  9. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
  10. ---
  11. drivers/pci/probe.c | 5 ++++-
  12. 1 file changed, 4 insertions(+), 1 deletion(-)
  13. --- a/drivers/pci/probe.c
  14. +++ b/drivers/pci/probe.c
  15. @@ -2132,7 +2132,10 @@ struct pci_bus *pci_scan_root_bus(struct
  16. if (!found)
  17. pci_bus_update_busn_res_end(b, max);
  18. - pci_bus_add_devices(b);
  19. + /* this should be done in arch/arm/kernel/bios32.c, because the
  20. + resources for the PCI devices are initilized later and doing
  21. + it here will fail. */
  22. + /* pci_bus_add_devices(b); */
  23. return b;
  24. }
  25. EXPORT_SYMBOL(pci_scan_root_bus);