]> git.dujemihanovic.xyz Git - u-boot.git/commit
ARM: cache: Fix incorrect bitwise operation
authorMarek Vasut <marex@denx.de>
Wed, 13 Feb 2019 20:50:25 +0000 (21:50 +0100)
committerMarek Vasut <marex@denx.de>
Mon, 25 Feb 2019 15:07:36 +0000 (16:07 +0100)
commitb275c9aba6d1628211287f80297048128acec964
tree82b3c54799f2f50859512c13a961657f19022726
parent97b262758b7c99a644155254bee9f716573b10ac
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: 93bc21930a1b ("armv7: add PL310 support to u-boot")
arch/arm/lib/cache-pl310.c