diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2007-12-19 22:54:46 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-12-20 00:18:07 -0500 |
commit | fc3fb71c3e1850a6a1099dd1cb7bcd7e69ac7b73 (patch) | |
tree | c9885bd47237c6e09b42a3c42496b5865c0caa02 /arch/powerpc/kernel/rtas_pci.c | |
parent | b9baa20b0a50947f2e86d7775c9dba87c0d946ef (diff) |
[POWERPC] pci32: Add flags modifying the PCI code behaviour
This adds to the 32 bits PCI code some flags, replacing the old
pci_assign_all_busses global, that allow us to control various
aspects of the PCI probing, such as whether to re-assign all
resources or not, or to not try to assign anything at all.
This also adds the flag x86 already has to avoid ISA alignment
on bridges that don't have ISA forwarding enabled (no legacy
devices on the top level bus) and sets it for PowerMacs.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/rtas_pci.c')
-rw-r--r-- | arch/powerpc/kernel/rtas_pci.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/rtas_pci.c b/arch/powerpc/kernel/rtas_pci.c index 3650eb50c27d..99aaae3409c0 100644 --- a/arch/powerpc/kernel/rtas_pci.c +++ b/arch/powerpc/kernel/rtas_pci.c | |||
@@ -311,10 +311,12 @@ void __init find_and_init_phbs(void) | |||
311 | if (prop) | 311 | if (prop) |
312 | pci_probe_only = *prop; | 312 | pci_probe_only = *prop; |
313 | 313 | ||
314 | #ifdef CONFIG_PPC32 /* Will be made generic soon */ | ||
314 | prop = of_get_property(of_chosen, | 315 | prop = of_get_property(of_chosen, |
315 | "linux,pci-assign-all-buses", NULL); | 316 | "linux,pci-assign-all-buses", NULL); |
316 | if (prop) | 317 | if (prop && *prop) |
317 | pci_assign_all_buses = *prop; | 318 | ppc_pci_flags |= PPC_PCI_REASSIGN_ALL_BUS; |
319 | #endif /* CONFIG_PPC32 */ | ||
318 | } | 320 | } |
319 | } | 321 | } |
320 | 322 | ||