]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/rtc/rtc-twl.c: ensure IRQ is wakeup enabled
authorKevin Hilman <khilman@linaro.org>
Wed, 19 Jun 2013 00:08:08 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:27:34 +0000 (17:27 +1000)
commitd634565d0d868b523ba4677d5e809f28220dc3f2
tree78d5ff12a56bb1f980dffadb0241231f3629f4f1
parentdcc532c96ed9b7165ce332c8fbfc5ae4432acb76
drivers/rtc/rtc-twl.c: ensure IRQ is wakeup enabled

Currently, the RTC IRQ is never wakeup-enabled so is not capable of
bringing the system out of suspend.

On OMAP platforms, we have gotten by without this because the TWL RTC is
on an I2C-connected chip which is capable of waking up the OMAP via the IO
ring when the OMAP is in low-power states.

However, if the OMAP suspends without hitting the low-power states (and
the IO ring is not enabled), RTC wakeups will not work because the IRQ is
not wakeup enabled.

To fix, ensure the RTC IRQ is wakeup enabled whenever the RTC alarm is
set.

Signed-off-by: Kevin Hilman <khilman@linaro.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-twl.c