projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c592292
)
pci: Fix setting controller's last_busno
author
Pali Rohár
<pali@kernel.org>
Mon, 17 Jan 2022 15:38:37 +0000
(16:38 +0100)
committer
Tom Rini
<trini@konsulko.com>
Fri, 28 Jan 2022 22:58:41 +0000
(17:58 -0500)
Initially it is set to dev_seq but update to the last bus number is
missing. Fix it.
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/pci/pci-uclass.c
patch
|
blob
|
history
diff --git
a/drivers/pci/pci-uclass.c
b/drivers/pci/pci-uclass.c
index
c66cd75
..
33dda00
100644
(file)
--- a/
drivers/pci/pci-uclass.c
+++ b/
drivers/pci/pci-uclass.c
@@
-560,6
+560,8
@@
int pci_auto_config_devices(struct udevice *bus)
if (pplat->class == (PCI_CLASS_DISPLAY_VGA << 8))
set_vga_bridge_bits(dev);
}
+ if (hose->last_busno < sub_bus)
+ hose->last_busno = sub_bus;
debug("%s: done\n", __func__);
return log_msg_ret("sub", sub_bus);