]> git.karo-electronics.de Git - karo-tx-linux.git/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>
Mon, 9 Sep 2013 13:08:43 +0000 (14:08 +0100)
commitaccd721523feadd0a812bc32ec2dca1f4832dc93
tree970b88ad2a23505f3b3c8e0a247e83987468ce41
parent157cc19db935af86a650ac33412fb6fd6503f099
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