From: Paul Burton Date: Thu, 9 Jun 2016 12:09:51 +0000 (+0100) Subject: MIPS: Fix invalidate_dcache_range to operate on L1 Dcache X-Git-Tag: v2016.07-rc2~48^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a95800e881a8df837f0c4121a2cd560a4c02bd2f;p=platform%2Fkernel%2Fu-boot.git MIPS: Fix invalidate_dcache_range to operate on L1 Dcache Commit fb64cda57998 ("MIPS: Abstract cache op loops with a macro") accidentally modified invalidate_dcache_range to operate on the L1 Icache instead of the Dcache. Fix the cache op used to operate on the Dcache. Signed-off-by: Paul Burton Fixes: fb64cda57998 ("MIPS: Abstract cache op loops with a macro") --- diff --git a/arch/mips/lib/cache.c b/arch/mips/lib/cache.c index 5f520c0..db81953 100644 --- a/arch/mips/lib/cache.c +++ b/arch/mips/lib/cache.c @@ -91,5 +91,5 @@ void invalidate_dcache_range(ulong start_addr, ulong stop) if (start_addr == stop) return; - cache_loop(start_addr, stop, lsize, HIT_INVALIDATE_I); + cache_loop(start_addr, stop, lsize, HIT_INVALIDATE_D); }