Skip to content

Commit

Permalink
x86/PCI: make pci=lastbus=255 work when acpi is on
Browse files Browse the repository at this point in the history
Impact: scan more peer root buses even acpi is used

Move pci_bios_fixup_peer_bridges out of pci_legacy_init and into
pci_subsys_init.  This allows pci_bios_fixup_peer_bridges to be called
even pci_apci_init is driving PCI initialization.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
  • Loading branch information
Yinghai Lu authored and Jesse Barnes committed Mar 26, 2009
1 parent 8985851 commit e42d1fe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/x86/pci/legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ static int __init pci_legacy_init(void)
if (pci_root_bus)
pci_bus_add_devices(pci_root_bus);

pcibios_fixup_peer_bridges();

return 0;
}

Expand All @@ -67,6 +65,7 @@ int __init pci_subsys_init(void)
pci_visws_init();
#endif
pci_legacy_init();
pcibios_fixup_peer_bridges();
pcibios_irq_init();
pcibios_init();

Expand Down

0 comments on commit e42d1fe

Please sign in to comment.