]> xenbits.xensource.com Git - seabios.git/commitdiff
pci: init all devices
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 15 May 2012 10:46:22 +0000 (12:46 +0200)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 23 May 2012 00:58:32 +0000 (20:58 -0400)
seabios used to initialize root bus devices only, with this patch
devices behind pci bridges are initialized too.  This allows to boot
from virtio devices behind pci bridges.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
src/pciinit.c

index 613a9c00146beb12b15e3975a84531d924c945c1..84525728204a0f50a59335c9c660de2380125e2f 100644 (file)
@@ -220,9 +220,6 @@ static void pci_bios_init_devices(void)
 {
     struct pci_device *pci;
     foreachpci(pci) {
-        if (pci_bdf_to_bus(pci->bdf) != 0)
-            // Only init devices on host bus.
-            break;
         pci_bios_init_device(pci);
     }