[PATCH 14/15] powerpc: avoid claiming some PCI bus
Ishizaki Kou
kou.ishizaki at toshiba.co.jp
Tue Dec 12 15:39:23 EST 2006
Celleb has multiple PCI buses. Devices on some of those PCI buses
require to assign resources by Linux. This patch is for such buses
not to claim resources, because claimed resource does not become a
target for resource assign.
Signed-off-by: Kou Ishizaki <kou.ishizaki.co.jp>
---
Index: linux-powerpc-git/arch/powerpc/kernel/pci_64.c
diff -u linux-powerpc-git/arch/powerpc/kernel/pci_64.c:1.1.1.1 linux-powerpc-git/arch/powerpc/kernel/pci_64.c:1.2
--- linux-powerpc-git/arch/powerpc/kernel/pci_64.c:1.1.1.1 Wed Dec 6 08:25:43 2006
+++ linux-powerpc-git/arch/powerpc/kernel/pci_64.c Wed Dec 6 08:43:14 2006
@@ -249,8 +249,16 @@
if (firmware_has_feature(FW_FEATURE_ISERIES))
return;
+#ifdef CONFIG_PPC_MULTIPLATFORM
+ list_for_each_entry(b, &pci_root_buses, node) {
+ if (!machine_is(celleb) ||
+ ppc_md.pci_probe_mode(b) == PCI_PROBE_DEVTREE)
+ pcibios_claim_one_bus(b);
+ }
+#else
list_for_each_entry(b, &pci_root_buses, node)
pcibios_claim_one_bus(b);
+#endif
}
static u32 get_int_prop(struct device_node *np, const char *name, u32 def)
More information about the Linuxppc-dev
mailing list