mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
ARM: cache: Fix incorrect bitwise operation
The loop implemented in the code is supposed to check whether the
PL310 operation register has any bit from the mask set. Currently,
the code checks whether the PL310 operation register has any bit
set AND whether the mask is non-zero, which is incorrect. Fix the
conditional.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Dalon Westergreen <dwesterg@gmail.com>
Cc: Dinh Nguyen <dinguyen@kernel.org>
Cc: Tom Rini <trini@konsulko.com>
Fixes: 93bc21930a
("armv7: add PL310 support to u-boot")
This commit is contained in:
parent
97b262758b
commit
b275c9aba6
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ static void pl310_background_op_all_ways(u32 *op_reg)
|
|||
/* Invalidate all ways */
|
||||
writel(way_mask, op_reg);
|
||||
/* Wait for all ways to be invalidated */
|
||||
while (readl(op_reg) && way_mask)
|
||||
while (readl(op_reg) & way_mask)
|
||||
;
|
||||
pl310_cache_sync();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue