[RFC PATCH] x86/PCI: Refine PCI support check in pcibios_init()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx>
---
 arch/x86/pci/common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c
index 8fd6f44..50b123d 100644
--- a/arch/x86/pci/common.c
+++ b/arch/x86/pci/common.c
@@ -517,7 +517,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;
 	}
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux