summaryrefslogtreecommitdiff
path: root/drivers/pci
diff options
context:
space:
mode:
authorMasami Hiramatsu <masami.hiramatsu@linaro.org>2021-04-17 00:53:46 +0300
committerStefano Babic <sbabic@denx.de>2021-05-02 13:46:54 +0300
commit19e1b8d9b283514eb6ab8d7253f4867068007938 (patch)
treea72772010ea74c40c4ec1d11b58996673a3d80dc /drivers/pci
parent566c537c606714b3e1289a75cc82c8f12a402b42 (diff)
downloadu-boot-19e1b8d9b283514eb6ab8d7253f4867068007938.tar.xz
pci: Update the highest subordinate bus number for bridge setup
Update the highest subordinate bus number after probing the devices under the bus for setting up the bridge correctly. The commit 42f3663a3f67 ("pci: Update to use new sequence numbers") removed this but it is required if a PCIe bridge is under the bus. Fixes: 42f3663a3f67 ("pci: Update to use new sequence numbers") Signed-off-by: Masami Hiramatsu <masami.hiramatsu@linaro.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/pci-uclass.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c
index dfd54b339f..f463ef3550 100644
--- a/drivers/pci/pci-uclass.c
+++ b/drivers/pci/pci-uclass.c
@@ -646,6 +646,9 @@ int dm_pci_hose_probe_bus(struct udevice *bus)
return log_msg_ret("probe", ret);
}
+ if (!ea_pos)
+ sub_bus = pci_get_bus_max();
+
dm_pciauto_postscan_setup_bridge(bus, sub_bus);
return sub_bus;