提交 f015c6c4 编写于 作者: A Andi Kleen 提交者: Andi Kleen

[PATCH] i386: Fix PCI BIOS config space access

Got broken by a earlier change.

Also add a printk when no pci config method could be found.

Cc: gregkh@suse.de
Signed-off-by: NAndi Kleen <ak@suse.de>
上级 70d666d6
...@@ -256,6 +256,8 @@ static int __init pci_check_type2(void) ...@@ -256,6 +256,8 @@ static int __init pci_check_type2(void)
void __init pci_direct_init(int type) void __init pci_direct_init(int type)
{ {
if (type == 0)
return;
printk(KERN_INFO "PCI: Using configuration type %d\n", type); printk(KERN_INFO "PCI: Using configuration type %d\n", type);
if (type == 1) if (type == 1)
raw_pci_ops = &pci_direct_conf1; raw_pci_ops = &pci_direct_conf1;
......
...@@ -28,6 +28,10 @@ static __init int pci_access_init(void) ...@@ -28,6 +28,10 @@ static __init int pci_access_init(void)
#ifdef CONFIG_PCI_DIRECT #ifdef CONFIG_PCI_DIRECT
pci_direct_init(type); pci_direct_init(type);
#endif #endif
if (!raw_pci_ops)
printk(KERN_ERR
"PCI: Fatal: No config space access function found\n");
return 0; return 0;
} }
arch_initcall(pci_access_init); arch_initcall(pci_access_init);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册