]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mfd: arizona: Check if AOD interrupts are pending before dispatching
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Wed, 15 Jun 2016 09:28:44 +0000 (10:28 +0100)
committerLee Jones <lee.jones@linaro.org>
Wed, 29 Jun 2016 09:14:40 +0000 (10:14 +0100)
commit1f2c39726f04906c6e97840599bc8d298c4b0eab
tree930a2db696924be78d95e0cffc8d018c7b2fd5af
parent9835f1b70bb3890d38308b9be4fb9d7451ba67f1
mfd: arizona: Check if AOD interrupts are pending before dispatching

Previously the arizona_irq_thread implementation would call
handle_nested_irqs() to handle AOD interrupts without checking if any
were actually pending. The kernel will see these as spurious IRQs and
will eventually disable the IRQ.

This patch ensures we only launch the nested handler if there are AOD
interrupts pending in the codec.

Signed-off-by: Simon Trimmer <simont@opensource.wolfsonmicro.com>
Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/arizona-irq.c