]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
x86/PCI: Refine PCI support check in pcibios_init()
authorAdrian-Ken Rueegsegger <ken@codelabs.ch>
Wed, 23 Mar 2016 10:34:29 +0000 (11:34 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 11 Apr 2016 20:03:30 +0000 (15:03 -0500)
Also consider raw_pci_ext_ops when validating if a system has PCI support.
This leads to proper resource allocation via pcibios_resource_survey() in
the case where PCI config space is exclusively accessed through MMCONFIG.

Signed-off-by: Adrian-Ken Rueegsegger <ken@codelabs.ch>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
arch/x86/pci/common.c

index 381a43c40bf7671e9dcbe33e402ef7efb4ff5505..8196054fedb0450d56978936d769c7189a86ad85 100644 (file)
@@ -516,7 +516,7 @@ void __init pcibios_set_cache_line_size(void)
 
 int __init pcibios_init(void)
 {
-       if (!raw_pci_ops) {
+       if (!raw_pci_ops && !raw_pci_ext_ops) {
                printk(KERN_WARNING "PCI: System does not support PCI\n");
                return 0;
        }