]> 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>
Thu, 27 Jun 2013 23:53:41 +0000 (09:53 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:38:49 +0000 (16:38 +1000)
commite87f3431029bd0a83406f833e70465d6062d2eb9
tree15d820d286435463724d8ecfad8dc80fc69b40a8
parent0f39473678c0a3ce078bf76176ec6af060ec3579
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