Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=5f027387bbdb5a4a4c1babd557fd976cd09d7495
Commit:     5f027387bbdb5a4a4c1babd557fd976cd09d7495
Parent:     b78673944b22b662b270c8bba5c198f19e4ee4e1
Author:     Olivier Galibert <[EMAIL PROTECTED]>
AuthorDate: Tue Feb 13 13:26:20 2007 +0100
Committer:  Andi Kleen <[EMAIL PROTECTED]>
CommitDate: Tue Feb 13 13:26:20 2007 +0100

    [PATCH] i386: Only call unreachable_devices() when type 1 is available.
    
    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 <[EMAIL PROTECTED]>
    Signed-off-by: Andi Kleen <[EMAIL PROTECTED]>
    Cc: Andi Kleen <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---
 arch/i386/pci/mmconfig-shared.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/i386/pci/mmconfig-shared.c b/arch/i386/pci/mmconfig-shared.c
index 998e04f..779c987 100644
--- a/arch/i386/pci/mmconfig-shared.c
+++ b/arch/i386/pci/mmconfig-shared.c
@@ -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;
        }
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to