0055-PCI-designware-Remove-PCI_PROBE_ONLY-handling.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. From ee2a430c1691d0bac3098e8db3c29d8f023b04c2 Mon Sep 17 00:00:00 2001
  2. From: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
  3. Date: Fri, 29 Jan 2016 11:29:32 +0000
  4. Subject: [PATCH 55/70] PCI: designware: Remove PCI_PROBE_ONLY handling
  5. The PCIe designware host driver is not used in system configurations
  6. requiring the PCI_PROBE_ONLY flag to be set to prevent resources
  7. assignment, therefore the driver code handling the flag can be removed
  8. from the kernel.
  9. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
  10. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
  11. Acked-by: Pratyush Anand <pratyush.anand@gmail.com>
  12. Acked-by: Jingoo Han Jingoo Han <jingoohan1@gmail.com>
  13. Cc: Arnd Bergmann <arnd@arndb.de>
  14. Cc: Gabriele Paoloni <gabriele.paoloni@huawei.com>
  15. Cc: Zhou Wang <wangzhou1@hisilicon.com>
  16. ---
  17. drivers/pci/host/pcie-designware.c | 10 ++++------
  18. 1 file changed, 4 insertions(+), 6 deletions(-)
  19. --- a/drivers/pci/host/pcie-designware.c
  20. +++ b/drivers/pci/host/pcie-designware.c
  21. @@ -556,13 +556,11 @@ int dw_pcie_host_init(struct pcie_port *
  22. pci_fixup_irqs(pci_common_swizzle, of_irq_parse_and_map_pci);
  23. #endif
  24. - if (!pci_has_flag(PCI_PROBE_ONLY)) {
  25. - pci_bus_size_bridges(bus);
  26. - pci_bus_assign_resources(bus);
  27. + pci_bus_size_bridges(bus);
  28. + pci_bus_assign_resources(bus);
  29. - list_for_each_entry(child, &bus->children, node)
  30. - pcie_bus_configure_settings(child);
  31. - }
  32. + list_for_each_entry(child, &bus->children, node)
  33. + pcie_bus_configure_settings(child);
  34. pci_bus_add_devices(bus);
  35. return 0;