]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mfd: Fix twl6030 lockdep recursion warning on setting wake IRQs
authorTodd Poynor <toddpoynor@google.com>
Tue, 4 Oct 2011 09:52:29 +0000 (11:52 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 6 Oct 2011 14:44:05 +0000 (16:44 +0200)
commitde278db11c839c714177a3049102f391787c6c95
tree2ddebb1682edeceaa1b57dfd16b3a38510865f1e
parent3b0ece82201a5aa04f16496f0a15c3b21fe7562f
mfd: Fix twl6030 lockdep recursion warning on setting wake IRQs

LOCKDEP explicitly sets all irq_desc locks as a single lock-class,
causing "possible recursive locking detected" when the TWL RTC
driver calls through enable_irq_wake to twl6030_irq_set_wake,
which recursively calls irq_set_irq_wake.  Although the
irq_desc and lock are different, LOCKDEP treats these as
equivalent, presumably due to problems that can be incurred
when locking more than one irq_desc, so best to avoid this.

Suspend/resume actions implemented as PM notifiers to avoid
touch the TWL core for this.

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