]> Zhao Yanbai Git Server - minix.git/commitdiff
PCI - do not panic when ACPI cannot map bridges
authorTomas Hruby <tom@minix3.org>
Fri, 6 May 2011 15:41:14 +0000 (17:41 +0200)
committerTomas Hruby <tom@minix3.org>
Fri, 6 May 2011 15:41:14 +0000 (17:41 +0200)
- when ACPI does not find mappings for pci brdiges, do no panic,
  only report a warning and continue to a fallback which uses
  only the root bus IRQ routing table. Fail only if that is not
  present.

drivers/pci/pci.c

index 004ddcae223a3076dfcc1ea3a20e5c672a30752a..3a630ccef32e6383efc11778c9c0a11d985d1e52 100644 (file)
@@ -1856,7 +1856,7 @@ PRIVATE void acpi_map_bridge(unsigned pbnr, unsigned dev, unsigned sbnr)
                panic("PCI: error %d while receiveing from ACPI\n", err);
 
        if (((struct acpi_map_bridge_resp *)&m)->err != OK)
-               panic("PCI: acpi failed to map pci (%d) to pci (%d) bridge\n",
+               printf("PCI: acpi failed to map pci (%d) to pci (%d) bridge\n",
                                                                pbnr, sbnr);
 }