From ec1ea2b46d1a0f58eebee16bb5426b1c6d9c1745 Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Mon, 24 Jun 2019 14:20:37 +1000 Subject: PCI: controller: xgene: Use pci_host_resource_survey() Use this instead of pci_assign_unassigned_bus_resources() as it is more appropriate for a host bridge. The result should be equivalent based on the default ARM policy. Signed-off-by: Benjamin Herrenschmidt --- drivers/pci/controller/pci-xgene.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/pci/controller/pci-xgene.c b/drivers/pci/controller/pci-xgene.c index ffda3e8b474268..f0a711e1398a4d 100644 --- a/drivers/pci/controller/pci-xgene.c +++ b/drivers/pci/controller/pci-xgene.c @@ -608,7 +608,6 @@ static int xgene_pcie_probe(struct platform_device *pdev) struct device_node *dn = dev->of_node; struct xgene_pcie_port *port; resource_size_t iobase = 0; - struct pci_bus *bus, *child; struct pci_host_bridge *bridge; int ret; LIST_HEAD(res); @@ -659,12 +658,8 @@ static int xgene_pcie_probe(struct platform_device *pdev) if (ret < 0) goto error; - bus = bridge->bus; - - pci_assign_unassigned_bus_resources(bus); - list_for_each_entry(child, &bus->children, node) - pcie_bus_configure_settings(child); - pci_bus_add_devices(bus); + pci_host_resource_survey(bridge->bus); + pci_bus_add_devices(bridge->bus); return 0; error: -- cgit 1.2.3-korg