linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 6/19] powerpc: avoid claiming some PCI bus
@ 2006-12-14  2:28 Ishizaki Kou
  2006-12-14  4:55 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 2+ messages in thread
From: Ishizaki Kou @ 2006-12-14  2:28 UTC (permalink / raw)
  To: paulus; +Cc: linuxppc-dev

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@toshiba.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.3
--- 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	Tue Dec 12 15:37:56 2006
@@ -249,8 +249,13 @@
 	if (firmware_has_feature(FW_FEATURE_ISERIES))
 		return;
 
-	list_for_each_entry(b, &pci_root_buses, node)
-		pcibios_claim_one_bus(b);
+	list_for_each_entry(b, &pci_root_buses, node) {
+		if (machine_is(celleb) &&
+		    ppc_md.pci_probe_mode(b) != PCI_PROBE_DEVTREE)
+			;
+		else
+			pcibios_claim_one_bus(b);
+	}
 }
 
 static u32 get_int_prop(struct device_node *np, const char *name, u32 def)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-12-14  4:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-14  2:28 [PATCH 6/19] powerpc: avoid claiming some PCI bus Ishizaki Kou
2006-12-14  4:55 ` Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).