Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI: designware: Remove PCI_PROBE_ONLY handling

The PCIe designware host driver is not used in system configurations
requiring the PCI_PROBE_ONLY flag to be set to prevent resources
assignment, therefore the driver code handling the flag can be removed
from the kernel.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Pratyush Anand <pratyush.anand@gmail.com>
Acked-by: Jingoo Han Jingoo Han <jingoohan1@gmail.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Gabriele Paoloni <gabriele.paoloni@huawei.com>
Cc: Zhou Wang <wangzhou1@hisilicon.com>

authored by

Lorenzo Pieralisi and committed by
Bjorn Helgaas
ed00c83c dd193929

+4 -6
+4 -6
drivers/pci/host/pcie-designware.c
··· 556 556 pci_fixup_irqs(pci_common_swizzle, of_irq_parse_and_map_pci); 557 557 #endif 558 558 559 - if (!pci_has_flag(PCI_PROBE_ONLY)) { 560 - pci_bus_size_bridges(bus); 561 - pci_bus_assign_resources(bus); 559 + pci_bus_size_bridges(bus); 560 + pci_bus_assign_resources(bus); 562 561 563 - list_for_each_entry(child, &bus->children, node) 564 - pcie_bus_configure_settings(child); 565 - } 562 + list_for_each_entry(child, &bus->children, node) 563 + pcie_bus_configure_settings(child); 566 564 567 565 pci_bus_add_devices(bus); 568 566 return 0;