[PATCH 14/16] Resource assignments for PCI devices on Celleb

Ishizaki Kou kou.ishizaki at toshiba.co.jp
Wed Nov 15 20:58:33 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 at toshiba.co.jp>
---

Index: linux-2.6.19/arch/powerpc/kernel/pci_64.c
diff -u linux-2.6.19/arch/powerpc/kernel/pci_64.c:1.1.1.2 linux-2.6.19/arch/powerpc/kernel/pci_64.c:1.3
--- linux-2.6.19/arch/powerpc/kernel/pci_64.c:1.1.1.2	Tue Oct 24 13:35:53 2006
+++ linux-2.6.19/arch/powerpc/kernel/pci_64.c	Mon Nov  6 22:04:23 2006
@@ -247,8 +247,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
 }
 
 #ifdef CONFIG_PPC_MULTIPLATFORM



More information about the Linuxppc-dev mailing list