Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f027387 authored by Olivier Galibert's avatar Olivier Galibert Committed by Andi Kleen
Browse files

[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: default avatarOlivier Galibert <galibert@pobox.com>
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
parent b7867394
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -80,6 +80,7 @@ void __init pci_mmcfg_init(int type)
	}

	if (pci_mmcfg_arch_init()) {
		if (type == 1)
			unreachable_devices();
		pci_probe = (pci_probe & ~PCI_PROBE_MASK) | PCI_PROBE_MMCONF;
	}