[PATCH] nonempty bus->name for PHBs

John Rose johnrose at austin.ibm.com
Tue Feb 3 10:51:33 EST 2004


Anyone have thoughts on this small addition to pcibios_fixup_bus()?  The
bus->name field is currently empty for PHBs.  Filling this in makes
debugging easier.  I also don't like the non-root level bus naming in
pci_scan_bridge(), as it doesn't include the PCI domain.

Thoughts?
John

diff -Nru a/arch/ppc64/kernel/pSeries_pci.c b/arch/ppc64/kernel/pSeries_pci.c
--- a/arch/ppc64/kernel/pSeries_pci.c	Mon Feb  2 17:47:17 2004
+++ b/arch/ppc64/kernel/pSeries_pci.c	Mon Feb  2 17:47:17 2004
@@ -565,6 +565,7 @@
 				printk(KERN_ERR "Failed to request MEM"
 						"on hose %d\n", 0 /* FIXME */);
 		}
+		sprintf(bus->name, "PCI Host Bridge #%02x", pci_domain_nr(bus));
 	} else if (pci_probe_only &&
 		   (dev->class >> 8) == PCI_CLASS_BRIDGE_PCI) {
 		/* This is a subordinate bridge */


** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list