[PATCH] irqchip/gic-v3: fix quiescence check in gic_enable_redist
From: Andrew Jones
Date: Wed May 11 2016 - 15:23:26 EST
Signed-off-by: Andrew Jones <drjones@xxxxxxxxxx>
---
I'm unaware of any problems this may have caused. I only
just saw it while reading over the code.
drivers/irqchip/irq-gic-v3.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c
index 5b7d3c2129d87..518bc1799b4dc 100644
--- a/drivers/irqchip/irq-gic-v3.c
+++ b/drivers/irqchip/irq-gic-v3.c
@@ -147,7 +147,7 @@ static void gic_enable_redist(bool enable)
while (count--) {
val = readl_relaxed(rbase + GICR_WAKER);
- if (enable ^ (val & GICR_WAKER_ChildrenAsleep))
+ if (enable ^ (bool)(val & GICR_WAKER_ChildrenAsleep))
break;
cpu_relax();
udelay(1);
--
2.4.11