]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mfd: Disable twl6030 IRQ during suspend
authorTodd Poynor <toddpoynor@google.com>
Mon, 26 Sep 2011 23:44:24 +0000 (16:44 -0700)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 6 Oct 2011 14:44:05 +0000 (16:44 +0200)
commit03945db89ab48803bb45aae4d698a4bf6f5b70bb
tree5ea0ede1345f02d02f4962f3e68683139657328a
parentde278db11c839c714177a3049102f391787c6c95
mfd: Disable twl6030 IRQ during suspend

Module IRQs may still be disabled by DPM at the time the TWL6030
ISR runs, causing handle_simple_irq() to silently do nothing.
This may result in missing TWL RTC alarm wakeups, for example,
since the RTC child module ISR is not called to ack the IRQ.

Disable the TWL6030 IRQ during suspend, enable it at DPM resume
time, at which time the child module IRQs will be re-enabled.

Signed-off-by: Todd Poynor <toddpoynor@google.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/twl6030-irq.c