]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
powerpc: Fix IDE legacy vs. native fixups
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 10 Dec 2007 04:29:22 +0000 (15:29 +1100)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 10 Dec 2007 15:39:54 +0000 (07:39 -0800)
commit6d98bda79bea0e1be26c0767d0e9923ad3b72f2e
tree3f6e5c772a6a1872ee07daade9f7c9a8ad889edc
parent7fd272550bd43cc1d7289ef0ab2fa50de137e767
powerpc: Fix IDE legacy vs. native fixups

PowerMac and CHRP/BriQ platforms have quirks to switch some IDE
controllers from legacy mode to fully native mode. Those quirks
however will not work properly anymore due to a change to the
generic code to better handle legacy IDE resources.

This fixes it by moving those quirk to "early" quirks (so they
run before resources are probed for the devices) and clearing
all BARs after the conversion to force a reallocation of sane
values.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/powerpc/platforms/chrp/pci.c
arch/powerpc/platforms/powermac/pci.c