[PATCH 14/16] Resource assignments for PCI devices on Celleb
From: Ishizaki Kou <hidden>
Date: 2006-11-15 09:58:38
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 <redacted> --- 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