mfd: pmic8058: ack an handled interrupt immediately
Currently the pmic interrupt thread handles all the interrupts
and later clears all those interrupts at once.
A problem was observed with this approach. The adc interrupt handler
could start another conversion and if the conversion finishes before
the pmic interrupt thread clears them, it ends up clearing the new
interrupt too.
Fix it by clearing the interrupt as soon as the handler is called.
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
1 file changed