aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2019-06-24 14:03:05 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2019-06-29 10:41:50 +1000
commitae644adaf0080455b696f17e2f15ed3344a6f6af (patch)
tree16971118f4bca27d6f776874c18b853d3864c527
parent50b2937f75defba3ee92c94f9aa4c2230006235f (diff)
downloadpci-ae644adaf0080455b696f17e2f15ed3344a6f6af.tar.gz
PCI: controller: hyperv: Don't call pci_bus_assign_resources()
*This needs feedback* I'm not sure why we called pci_bus_assign_resources() without first sizing bridges. This replaces it with pci_assign_unassigned_root_bus_resources() so I can deprecate the former. It's not completely equivalent so it would be useful to know why this was called... Not-signed-off-by-yet...
-rw-r--r--drivers/pci/controller/pci-hyperv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/controller/pci-hyperv.c b/drivers/pci/controller/pci-hyperv.c
index 82acd6155adf3d..59369a5e35c5d0 100644
--- a/drivers/pci/controller/pci-hyperv.c
+++ b/drivers/pci/controller/pci-hyperv.c
@@ -1523,7 +1523,7 @@ static int create_root_hv_pci_bus(struct hv_pcibus_device *hbus)
pci_lock_rescan_remove();
pci_scan_child_bus(hbus->pci_bus);
- pci_bus_assign_resources(hbus->pci_bus);
+ pci_assign_unassigned_root_bus_resources(hbus->pci_bus);
hv_pci_assign_slots(hbus);
pci_bus_add_devices(hbus->pci_bus);
pci_unlock_rescan_remove();