aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2019-06-24 13:37:25 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2019-06-29 10:41:50 +1000
commitc92e1cba5d966f995f3e72c8301fee7266e8ac40 (patch)
treed10d6d9c385d7d762a153fd08c8f98bd24ea5075
parentdd296652191f6a9d80f93b505a41f2fa5a3a01ad (diff)
downloadpci-c92e1cba5d966f995f3e72c8301fee7266e8ac40.tar.gz
PCI: controller: v3-semi: Use pci_host_resource_survey()
This replaces the call to pci_bus_assign_resources() which was incomplete (it was lacking bridge sizing). Additionally this will honor the resource allocation policy set by the platform. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-rw-r--r--drivers/pci/controller/pci-v3-semi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/controller/pci-v3-semi.c b/drivers/pci/controller/pci-v3-semi.c
index d219404bad92b..2c9665705789f 100644
--- a/drivers/pci/controller/pci-v3-semi.c
+++ b/drivers/pci/controller/pci-v3-semi.c
@@ -939,7 +939,7 @@ static int v3_pci_probe(struct platform_device *pdev)
}
v3->bus = host->bus;
- pci_bus_assign_resources(v3->bus);
+ pci_host_resource_survey(v3->bus);
pci_bus_add_devices(v3->bus);
return 0;