Skip to content

Commit ed00c83

Browse files
Lorenzo Pieralisibjorn-helgaas
authored andcommitted
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>
1 parent dd19392 commit ed00c83

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

‎drivers/pci/host/pcie-designware.c‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -556,13 +556,11 @@ int dw_pcie_host_init(struct pcie_port *pp)
556556
pci_fixup_irqs(pci_common_swizzle, of_irq_parse_and_map_pci);
557557
#endif
558558

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);
562561

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);
566564

567565
pci_bus_add_devices(bus);
568566
return 0;

0 commit comments

Comments
 (0)