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>
This commit is contained in:
Adrian-Ken Rueegsegger 2016-03-23 11:34:29 +01:00 committed by Bjorn Helgaas
parent 9735a22799
commit 35a6ae07c6
1 changed files with 1 additions and 1 deletions

View 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;
}