-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PATCH] PCI: Give PCI config access initialization a defined ordering
I moved it to a separate function which is safer. This avoids problems with the linker reordering them and the less useful PCI config space access methods taking priority over the better ones. Fixes some problems with broken MMCONFIG Cc: Dave Hansen <haveblue@us.ibm.com> Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
- Loading branch information
Andi Kleen
authored and
Greg Kroah-Hartman
committed
Mar 23, 2006
1 parent
e4e7304
commit 92c05fc
Showing
7 changed files
with
40 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include <linux/config.h> | ||
#include <linux/pci.h> | ||
#include <linux/init.h> | ||
#include "pci.h" | ||
|
||
/* arch_initcall has too random ordering, so call the initializers | ||
in the right sequence from here. */ | ||
static __init int pci_access_init(void) | ||
{ | ||
#ifdef CONFIG_PCI_MMCONFIG | ||
pci_mmcfg_init(); | ||
#endif | ||
if (raw_pci_ops) | ||
return 0; | ||
#ifdef CONFIG_PCI_BIOS | ||
pci_pcbios_init(); | ||
#endif | ||
if (raw_pci_ops) | ||
return 0; | ||
#ifdef CONFIG_PCI_DIRECT | ||
pci_direct_init(); | ||
#endif | ||
return 0; | ||
} | ||
arch_initcall(pci_access_init); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters