[PATCH] powerpc: Extended PCI config space

Benjamin Herrenschmidt benh at kernel.crashing.org
Tue Jan 10 14:50:37 EST 2006


This adds back the call to pci_cfg_space_size() when building the PCI
tree from OF nodes that was commented out due to the function not being
exported by the PCI code. It's now exported, so let's use it.

Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>

diff -urN linux-2.6/arch/powerpc/kernel/pci_64.c linux-work/arch/powerpc/kernel/pci_64.c
--- linux-2.6/arch/powerpc/kernel/pci_64.c	2006-01-10 11:40:15.000000000 +1100
+++ linux-work/arch/powerpc/kernel/pci_64.c	2005-12-19 16:13:38.000000000 +1100
@@ -381,7 +381,7 @@
 	dev->subsystem_vendor = get_int_prop(node, "subsystem-vendor-id", 0);
 	dev->subsystem_device = get_int_prop(node, "subsystem-id", 0);
 
-	dev->cfg_size = 256; /*pci_cfg_space_size(dev);*/
+	dev->cfg_size = pci_cfg_space_size(dev);
 
 	sprintf(pci_name(dev), "%04x:%02x:%02x.%d", pci_domain_nr(bus),
 		dev->bus->number, PCI_SLOT(devfn), PCI_FUNC(devfn));





More information about the Linuxppc64-dev mailing list