[ARM] 5034/1: fix arm{925,926,940,946} dma_flush_range() in WT mode
authorLennert Buytenhek <buytenh@wantstofly.org>
Sat, 10 May 2008 20:05:31 +0000 (21:05 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 17 May 2008 21:55:14 +0000 (22:55 +0100)
commitb3a8b751c1c2997653c6bf2b5d10467c39f3cc6e
tree3b41e1ba606f9f1fb1aa08d4c66b873c7443fb94
parentdb2c4392907524fa376ffbd04f5781d6394e2666
[ARM] 5034/1: fix arm{925,926,940,946} dma_flush_range() in WT mode

The CPU's dma_flush_range() operation needs to clean+invalidate the
given memory area if the cache is in writeback mode, or do just the
invalidate part if the cache is in writethrough mode, but the current
proc-arm{925,926,940,946} (incorrectly) do a cache clean in the
latter case.  This patch fixes that.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/proc-arm925.S
arch/arm/mm/proc-arm926.S
arch/arm/mm/proc-arm940.S
arch/arm/mm/proc-arm946.S