]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
pci: Update the highest subordinate bus number for bridge setup
authorMasami Hiramatsu <masami.hiramatsu@linaro.org>
Fri, 16 Apr 2021 21:53:46 +0000 (14:53 -0700)
committerStefano Babic <sbabic@denx.de>
Sun, 2 May 2021 10:46:54 +0000 (12:46 +0200)
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>
drivers/pci/pci-uclass.c

index dfd54b339f45e0f0558ca95dd903ddc32fdc53ac..f463ef35509f3f8ac8ce9ba30707f13272e0aa16 100644 (file)
@@ -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;