]> Pileus Git - ~andy/linux/commit
mfd: tps6586x: Implement irq_set_wake
authorStephen Warren <swarren@nvidia.com>
Fri, 6 Sep 2013 23:17:13 +0000 (17:17 -0600)
committerLee Jones <lee.jones@linaro.org>
Wed, 23 Oct 2013 15:20:39 +0000 (16:20 +0100)
commit234506ad3f28d5eea85f739f637cde6d9e8f5a88
tree110d147e21a57a3f7562c43e2de9b419c60190e9
parentb5f90240e1ef0568a8c666da3c3be4c6a682c5a6
mfd: tps6586x: Implement irq_set_wake

rtc-tps6586x calls enable/disable_irq_wake() during suspend/resume. Since
the main tps6586x irq_chip doesn't implement .irq_set_wake, this causes
the RTC's enable_irq_wake() to fail, and the disable_irq_wake() to spew a
WARN about unbalanced wake disable. Solve this by implementing
.irq_set_wake.

Also, I assume that enable_irq_wake() shouldn't be called unconditionally
in tps6586x_irq_init(), since this is now triggered by IRQ children
setting up their cascaded IRQs for wake. So, remove that.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/tps6586x.c