aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian-Ken Rueegsegger <ken@codelabs.ch>2016-03-23 06:34:29 -0400
committerBjorn Helgaas <bhelgaas@google.com>2016-04-11 16:03:30 -0400
commit35a6ae07c663499875309f18730f3440bb59f6fe (patch)
treeca3034035eb2457f942151c23f458339a89130e8
parent9735a22799b9214d17d3c231fe377fc852f042e9 (diff)
x86/PCI: Refine PCI support check in pcibios_init()
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>
-rw-r--r--arch/x86/pci/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c
index 381a43c40bf7..8196054fedb0 100644
--- a/arch/x86/pci/common.c
+++ b/arch/x86/pci/common.c
@@ -516,7 +516,7 @@ void __init pcibios_set_cache_line_size(void)
516 516
517int __init pcibios_init(void) 517int __init pcibios_init(void)
518{ 518{
519 if (!raw_pci_ops) { 519 if (!raw_pci_ops && !raw_pci_ext_ops) {
520 printk(KERN_WARNING "PCI: System does not support PCI\n"); 520 printk(KERN_WARNING "PCI: System does not support PCI\n");
521 return 0; 521 return 0;
522 } 522 }