Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88aec4f7 authored by Mattias Wallin's avatar Mattias Wallin Committed by Samuel Ortiz
Browse files

mfd: Fix ab8500-core interrupt ffs bit bug



We want to find the first set bit on value, not status.

Signed-off-by: default avatarMattias Wallin <mattias.wallin@stericsson.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent bd7c72ed
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -303,7 +303,7 @@ static irqreturn_t ab8500_irq(int irq, void *dev)
			continue;

		do {
			int bit = __ffs(status);
			int bit = __ffs(value);
			int line = i * 8 + bit;

			handle_nested_irq(ab8500->irq_base + line);