diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2018-04-17 14:59:10 +0200 |
---|---|---|
committer | Philippe Schenker <philippe.schenker@toradex.com> | 2019-05-24 11:34:17 +0200 |
commit | 847a4ae09a46c0e1d1438ed59197bb8eb10dcaea (patch) | |
tree | b4c242a7dee7c270c6a9928a42da1442518b9e00 /drivers/pci | |
parent | 3398c34481c1dafcc8cea6244a29ab8c85843055 (diff) |
Revert "PCI: Do not allocate more buses than available in parent"
This reverts commit 9a4bf05126f42c2632729ab0da503021d74ed454.
With this commit the PCIe enumaration fails. A follow up commit further
addresses the issue.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/probe.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index e23bfd9845b1..537d5db15781 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -1078,8 +1078,7 @@ int pci_scan_bridge(struct pci_bus *bus, struct pci_dev *dev, int max, int pass) child = pci_add_new_bus(bus, dev, max+1); if (!child) goto out; - pci_bus_insert_busn_res(child, max+1, - bus->busn_res.end); + pci_bus_insert_busn_res(child, max+1, 0xff); } max++; buses = (buses & 0xff000000) @@ -2440,10 +2439,6 @@ unsigned int pci_scan_child_bus(struct pci_bus *bus) if (bus->self && bus->self->is_hotplug_bridge && pci_hotplug_bus_size) { if (max - bus->busn_res.start < pci_hotplug_bus_size - 1) max = bus->busn_res.start + pci_hotplug_bus_size - 1; - - /* Do not allocate more buses than we have room left */ - if (max > bus->busn_res.end) - max = bus->busn_res.end; } /* |