]> git.baikalelectronics.ru Git - uboot.git/commit
ARM: cache: Fix incorrect bitwise operation
authorMarek Vasut <marex@denx.de>
Tue, 19 Feb 2019 00:43:51 +0000 (01:43 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 28 Feb 2019 19:21:46 +0000 (14:21 -0500)
commitf289acc53b1d87a41fc04585112f30baeb532944
treed0355d8f8bf5c4704f7413dcdeca8e1449d908d9
parent1b8393342a4f521fe6f60ddbbdfae9d256408b42
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")
Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Reviewed-by: Dinh Nguyen <dinguyen@kernel.org>
arch/arm/lib/cache-pl310.c