]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
ARM1136: Fix cache range checks
authorBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
Thu, 19 Jul 2012 01:35:32 +0000 (01:35 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 21 Jul 2012 21:24:25 +0000 (23:24 +0200)
commitf8f09dd40423b7f9ea0f0b810a8f5da9cd580a17
treeeb9a6ebe8211cf7af024a363757b169a8c543069
parent6b8ac524e7bcfd4853bb4f494e539a63d894a46f
ARM1136: Fix cache range checks

bad_cache_range actually returned true if the range was OK, but it was used
according to its name, which resulted in all valid dcache range invalidate/flush
operations being dropped. Hence, most DMA transfers resulted in garbage data.

This patch renames this function according to what it does, and it fixes the
interpretation of its return value by other functions. The chosen naming is the
same as for ARM926EJ-S in order to be consistent.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Acked-by: Stefano Babic <sbabic@denx.de>
arch/arm/cpu/arm1136/cpu.c