]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dm: pci: Correct bus number when scanning sub-buses
authorSimon Glass <sjg@chromium.org>
Sun, 7 Jun 2015 14:50:41 +0000 (08:50 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 15 Jul 2015 00:03:18 +0000 (18:03 -0600)
The sub-bus passed to pciauto_prescan_setup_bridge() is incorrect. Fix it
so that sub-buses are numbered correctly.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/pci/pci-uclass.c

index 41d19cb37a936170d34e9e714be0ddea6b287194..edec93f9a47c89296d85d258bf66ce5b5a8eb7c5 100644 (file)
@@ -334,7 +334,7 @@ int dm_pci_hose_probe_bus(struct pci_controller *hose, pci_dev_t bdf)
 
        sub_bus = pci_get_bus_max() + 1;
        debug("%s: bus = %d/%s\n", __func__, sub_bus, bus->name);
-       pciauto_prescan_setup_bridge(hose, bdf, bus->seq);
+       pciauto_prescan_setup_bridge(hose, bdf, sub_bus);
 
        ret = device_probe(bus);
        if (ret) {