
30 Nov
2005
30 Nov
'05
7:50 p.m.
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);