aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2019-06-24 14:18:16 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2019-06-29 10:41:50 +1000
commit9e8c5b00932e76ddda2d77fe53b14f2c505b16fb (patch)
tree9ea4456b096c22adde38cf60ff3c0f66da9e6d30
parentf2c7660f504269b858717413b5bb8d00a6bd42d1 (diff)
downloadpci-9e8c5b00932e76ddda2d77fe53b14f2c505b16fb.tar.gz
PCI: controller: iproc: 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 <benh@kernel.crashing.org>
-rw-r--r--drivers/pci/controller/pcie-iproc.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/pci/controller/pcie-iproc.c b/drivers/pci/controller/pcie-iproc.c
index e3ca464974701..a08e92f433888 100644
--- a/drivers/pci/controller/pcie-iproc.c
+++ b/drivers/pci/controller/pcie-iproc.c
@@ -1487,7 +1487,6 @@ int iproc_pcie_setup(struct iproc_pcie *pcie, struct list_head *res)
{
struct device *dev;
int ret;
- struct pci_bus *child;
struct pci_host_bridge *host = pci_host_bridge_from_priv(pcie);
dev = pcie->dev;
@@ -1556,14 +1555,8 @@ int iproc_pcie_setup(struct iproc_pcie *pcie, struct list_head *res)
dev_err(dev, "failed to scan host: %d\n", ret);
goto err_power_off_phy;
}
-
- pci_assign_unassigned_bus_resources(host->bus);
-
pcie->root_bus = host->bus;
-
- list_for_each_entry(child, &host->bus->children, node)
- pcie_bus_configure_settings(child);
-
+ pci_host_resource_survey(host->bus);
pci_bus_add_devices(host->bus);
return 0;