Fix bogus PCI quirk for e100
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 28 Sep 2007 23:06:21 +0000 (09:06 +1000)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 28 Sep 2007 23:21:10 +0000 (16:21 -0700)
commit1bef7dc00caa7bcbff4fdb55e599e2591461fafa
tree4bf2da508185000e9960761e0b57fc3e574afcb3
parent05e31754d18169555f2c8b54b5fa8631c6be6e7f
Fix bogus PCI quirk for e100

Linas reported me that some machines were crashing at boot in
quirk_e100_interrupt. It appears that this quirk is doing an ioremap
directly on a PCI BAR value, which isn't legal and will cause all sorts
of bad things to happen on architectures where PCI BARs don't directly
match processor bus addresses.

This fixes it by using the proper PCI resources instead which is possible
since the quirk has been moved by a previous commit to happen late enough
for that.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Linas Vepstas <linas@austin.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/pci/quirks.c