aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/86xx
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2007-06-26 13:12:55 -0400
committerKumar Gala <galak@kernel.crashing.org>2007-06-29 02:58:24 -0400
commit476f5779b77a919f0ced5953de2bf3e0f2d02c07 (patch)
tree10135692a58501576e4fc0f999a60e85e9fde643 /arch/powerpc/platforms/86xx
parente4725c23eca47b5dc0d0d128b9af288c0cd878f6 (diff)
[POWERPC] 86xx: Workaround PCI_PRIMARY_BUS usage
The Freescale PCI-e controllers have an issue in that they use the PCI_PRIMARY_BUS register in the virtual P2P bridge to determine which bus number to match on when generating a type 0 config cycle. The issue is if we are renumbering bus numbers to match Linux we will try setting the PCI_PRIMARY_BUS and will not know which bus number to use for generating type 0 config cycles. We surpress writing the register in the P2P bridge and always keep it at zero. In the future when proper PCI domain support is working we should be able to remove this. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/86xx')
-rw-r--r--arch/powerpc/platforms/86xx/pci.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/86xx/pci.c b/arch/powerpc/platforms/86xx/pci.c
index 3825e1ac5312..6f3c0f674bbf 100644
--- a/arch/powerpc/platforms/86xx/pci.c
+++ b/arch/powerpc/platforms/86xx/pci.c
@@ -158,11 +158,13 @@ int __init mpc86xx_add_bridge(struct device_node *dev)
158 printk(KERN_WARNING "Can't get bus-range for %s, assume" 158 printk(KERN_WARNING "Can't get bus-range for %s, assume"
159 " bus 0\n", dev->full_name); 159 " bus 0\n", dev->full_name);
160 160
161 pci_assign_all_buses = 1;
161 hose = pcibios_alloc_controller(); 162 hose = pcibios_alloc_controller();
162 if (!hose) 163 if (!hose)
163 return -ENOMEM; 164 return -ENOMEM;
164 hose->arch_data = dev; 165 hose->arch_data = dev;
165 hose->indirect_type = PPC_INDIRECT_TYPE_EXT_REG; 166 hose->indirect_type = PPC_INDIRECT_TYPE_EXT_REG |
167 PPC_INDIRECT_TYPE_SURPRESS_PRIMARY_BUS;
166 168
167 hose->first_busno = bus_range ? bus_range[0] : 0x0; 169 hose->first_busno = bus_range ? bus_range[0] : 0x0;
168 hose->last_busno = bus_range ? bus_range[1] : 0xff; 170 hose->last_busno = bus_range ? bus_range[1] : 0xff;