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

PCI: rcar: Remove PCI_PROBE_ONLY handling

The PCIe rcar 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: Simon Horman <horms+renesas@verge.net.au>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Phil Edworthy <phil.edworthy@renesas.com>

authored by

Lorenzo Pieralisi and committed by
Bjorn Helgaas
3487c656 92e963f5

+5 -9
+5 -9
drivers/pci/host/pcie-rcar.c
··· 390 390 391 391 rcar_pcie_setup(&res, pcie); 392 392 393 - /* Do not reassign resources if probe only */ 394 - if (!pci_has_flag(PCI_PROBE_ONLY)) 395 - pci_add_flags(PCI_REASSIGN_ALL_RSRC | PCI_REASSIGN_ALL_BUS); 393 + pci_add_flags(PCI_REASSIGN_ALL_RSRC | PCI_REASSIGN_ALL_BUS); 396 394 397 395 if (IS_ENABLED(CONFIG_PCI_MSI)) 398 396 bus = pci_scan_root_bus_msi(pcie->dev, pcie->root_bus_nr, ··· 406 408 407 409 pci_fixup_irqs(pci_common_swizzle, of_irq_parse_and_map_pci); 408 410 409 - if (!pci_has_flag(PCI_PROBE_ONLY)) { 410 - pci_bus_size_bridges(bus); 411 - pci_bus_assign_resources(bus); 411 + pci_bus_size_bridges(bus); 412 + pci_bus_assign_resources(bus); 412 413 413 - list_for_each_entry(child, &bus->children, node) 414 - pcie_bus_configure_settings(child); 415 - } 414 + list_for_each_entry(child, &bus->children, node) 415 + pcie_bus_configure_settings(child); 416 416 417 417 pci_bus_add_devices(bus); 418 418