[U-Boot-Users] RFC: PCI table based cfg change?
Kumar Gala
galak at gate.crashing.org
Wed Nov 30 19:50:53 CET 2005
I was hoping to get some feedback on the following patch. It is intended
to deal with the case if we are configuring a PCI bridge via the
pci_config_table, we need some way of reporting back the fact that the bus
number has changed.
- kumar
--- a/drivers/pci.c
+++ b/drivers/pci.c
@@ -459,6 +459,7 @@ int pci_hose_scan_bus(struct pci_control
PCI_BUS(dev), PCI_DEV(dev), PCI_FUNC(dev));
if (cfg) {
cfg->config_device(hose, dev, cfg);
+ sub_bus = max(sub_bus, hose->current_busno);
#ifdef CONFIG_PCI_PNP
} else {
int n = pciauto_config_device(hose, dev);
More information about the U-Boot
mailing list