linux/arch
Benjamin Herrenschmidt 2db740cb36 PCI/cardbus: Add a fixup hook and fix powerpc
commit 2d1c861871 upstream

The cardbus code creates PCI devices without ever going through the
necessary fixup bits and pieces that normal PCI devices go through.

There's in fact a commented out call to pcibios_fixup_bus() in there,
it's commented because ... it doesn't work.

I could make pcibios_fixup_bus() do the right thing on powerpc easily
but I felt it cleaner instead to provide a specific hook pci_fixup_cardbus
for which a weak empty implementation is provided by the PCI core.

This fixes cardbus on powerbooks and probably all other PowerPC
platforms which was broken completely for ever on some platforms and
since 2.6.31 on others such as PowerBooks when we made the DMA ops
mandatory (since those are setup by the fixups).

Acked-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-01-22 15:18:26 -08:00
..
alpha untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
arm untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
avr32 untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
blackfin untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
cris untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
frv untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
h8300 untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
ia64 untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
m32r untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
m68k untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
m68knommu untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
microblaze untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
mips untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
mn10300 untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
parisc untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
powerpc PCI/cardbus: Add a fixup hook and fix powerpc 2010-01-22 15:18:26 -08:00
s390 untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
score untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
sh untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
sparc untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
um untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
x86 x86: SGI UV: Fix mapping of MMIO registers 2010-01-22 15:18:16 -08:00
xtensa untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
.gitignore
Kconfig oprofile: fix oprofile regression: select RING_BUFFER_ALLOW_SWAP 2009-09-17 15:53:42 -04:00