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

STALE7283d

2 messages, 2 authors, 2006-11-15 · open the first message on its own page

[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

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

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2006-11-15 23:56:40

On Wed, 2006-11-15 at 18:58 +0900, Ishizaki Kou wrote:
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.
I do not fully understand why you need that. You should be able to let
the PCI code claim all resources wether they are on real PCI or not.

Ben.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help