summaryrefslogtreecommitdiff
path: root/arch/arm/lib/cache-pl310.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-02-28 14:22:03 -0500
committerTom Rini <trini@konsulko.com>2019-02-28 14:22:03 -0500
commit7869e647a60ae706457bb601a3c2ea51e9fdd413 (patch)
tree2e77dd316e2c5899f780ac6cf037117420d7febd /arch/arm/lib/cache-pl310.c
parent783e66816d101f970b185083377846059d4d577d (diff)
parent438dcabb75d6b9b0e7f887befb753d1863f14deb (diff)
Merge branch '2019-02-29-master-imports'
- Assorted BSP fixes - Kbuild fix
Diffstat (limited to 'arch/arm/lib/cache-pl310.c')
-rw-r--r--arch/arm/lib/cache-pl310.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/lib/cache-pl310.c b/arch/arm/lib/cache-pl310.c
index 1296ba6efd..bbaaaa4157 100644
--- a/arch/arm/lib/cache-pl310.c
+++ b/arch/arm/lib/cache-pl310.c
@@ -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();
}