]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/i386/pci/mmconfig-shared.c
[PATCH] mmconfig: fix unreachable_devices()
[linux-2.6-omap-h63xx.git] / arch / i386 / pci / mmconfig-shared.c
index 4ea0852487a4e0db8207bed16f749aacb7da542e..473db6257013aaeb84f62160c3764227c9c6bd12 100644 (file)
@@ -43,12 +43,14 @@ static void __init unreachable_devices(void)
                        if (val1 == 0xffffffff)
                                continue;
 
-                       raw_pci_ops->read(0, bus, devfn, 0, 4, &val2);
-                       if (val1 != val2) {
-                               set_bit(i + 32 * bus, pci_mmcfg_fallback_slots);
-                               printk(KERN_NOTICE "PCI: No mmconfig possible"
-                                      " on device %02x:%02x\n", bus, i);
+                       if (pci_mmcfg_arch_reachable(0, bus, devfn)) {
+                               raw_pci_ops->read(0, bus, devfn, 0, 4, &val2);
+                               if (val1 == val2)
+                                       continue;
                        }
+                       set_bit(i + 32 * bus, pci_mmcfg_fallback_slots);
+                       printk(KERN_NOTICE "PCI: No mmconfig possible on device"
+                              " %02x:%02x\n", bus, i);
                }
        }
 }