[PATCH] ppc64: OF overrides for pci_probe_only, pci_assign_all_buses

Anton Blanchard anton at samba.org
Sun Nov 14 17:29:44 EST 2004


Allow pci_probe_only and pci_assign_all_buses to be modified via OF
properties.

Signed-off-by: Anton Blanchard <anton at samba.org>

diff -puN arch/ppc64/kernel/pSeries_pci.c~pci4 arch/ppc64/kernel/pSeries_pci.c
--- gr_base/arch/ppc64/kernel/pSeries_pci.c~pci4	2004-11-12 04:50:38.272670698 -0600
+++ gr_base-anton/arch/ppc64/kernel/pSeries_pci.c	2004-11-12 04:50:38.283668903 -0600
@@ -386,6 +386,24 @@ unsigned long __init find_and_init_phbs(
 	of_node_put(root);
 	pci_devs_phb_init();
 
+	/* 
+	 * pci_probe_only and pci_assign_all_buses can be set via properties
+	 * in chosen.
+	 */
+	if (of_chosen) {
+		int *prop;
+
+		prop = (int *)get_property(of_chosen, "linux,pci-probe-only",
+					   NULL);
+		if (prop)
+			pci_probe_only = *prop;
+
+		prop = (int *)get_property(of_chosen,
+					   "linux,pci-assign-all-buses", NULL);
+		if (prop)
+			pci_assign_all_buses = *prop;
+	}
+
 	return 0;
 }
 
_



More information about the Linuxppc64-dev mailing list