[PATCH] i386: Only call unreachable_devices() when type 1 is available.
authorOlivier Galibert <galibert@pobox.com>
Tue, 13 Feb 2007 12:26:20 +0000 (13:26 +0100)
committerAndi Kleen <andi@basil.nowhere.org>
Tue, 13 Feb 2007 12:26:20 +0000 (13:26 +0100)
unreachable_devices compares between the results of pci configuration accesses
through type1 and mmconfig, so it should be called only if type1 actually
works in the first place.

Signed-off-by: Olivier Galibert <galibert@pobox.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
arch/i386/pci/mmconfig-shared.c

index 998e04f6d68ff2011fd75fa3cd9f119988972b03..779c987acc5b01a662b9b42a2a1bcebcfc5ed9b6 100644 (file)
@@ -80,7 +80,8 @@ void __init pci_mmcfg_init(int type)
        }
 
        if (pci_mmcfg_arch_init()) {
-               unreachable_devices();
+               if (type == 1)
+                       unreachable_devices();
                pci_probe = (pci_probe & ~PCI_PROBE_MASK) | PCI_PROBE_MMCONF;
        }
 }