1 Index: linux-2.6.23/drivers/ssb/driver_pcicore.c
2 ===================================================================
3 --- linux-2.6.23.orig/drivers/ssb/driver_pcicore.c 2007-10-13 04:20:23.235499369 +0200
4 +++ linux-2.6.23/drivers/ssb/driver_pcicore.c 2007-10-13 04:21:28.895241103 +0200
7 /* Enable PCI bridge BAR1 prefetch and burst */
8 pci_write_config_dword(dev, SSB_BAR1_CONTROL, 3);
10 + /* Make sure our latency is high enough to handle the devices behind us */
11 + pci_write_config_byte(dev, PCI_LATENCY_TIMER, 0xa8);
13 DECLARE_PCI_FIXUP_EARLY(PCI_ANY_ID, PCI_ANY_ID, ssb_fixup_pcibridge);
15 -int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
16 +int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
18 return ssb_mips_irq(extpci_core->dev) + 2;
22 if (unlikely(pc->cardbusmode && dev > 1))
25 + if (bus == 0) {//FIXME busnumber ok?
26 /* Type 0 transaction */
27 if (unlikely(dev >= SSB_PCI_SLOT_MAX))
30 val = *((const u32 *)buf);
33 - writel(*((const u32 *)buf), mmio);
40 val |= SSB_PCICORE_CTL_RST; /* Deassert RST# */
41 pcicore_write32(pc, SSB_PCICORE_CTL, val);
42 + val = SSB_PCICORE_ARBCTL_INTERN;
43 + pcicore_write32(pc, SSB_PCICORE_ARBCTL, val);
48 * The following needs change, if we want to port hostmode
49 * to non-MIPS platform. */
50 set_io_port_base((unsigned long)ioremap_nocache(SSB_PCI_MEM, 0x04000000));
52 register_pci_controller(&ssb_pcicore_controller);