mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-16 04:49:11 +01:00
dm: pci: Correct bus number when scanning sub-buses
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>
This commit is contained in:
parent
aec241dfb4
commit
5afeb4bb45
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue