Commit 19d34d9a authored by matti.halme@nokia.com's avatar matti.halme@nokia.com Committed by Tony Lindgren

Don't mask rtc-twl4030 alarm interrupts on shutdown

A triggering RTC alarm should be able to power on a device that has been
powered off. This patch enables that on twl4030 by not masking the alarm
interrupt at shutdown.
Signed-off-by: default avatarMatti Halme <matti.halme@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 6c9f3355
...@@ -505,8 +505,9 @@ static int __devexit twl4030_rtc_remove(struct platform_device *pdev) ...@@ -505,8 +505,9 @@ static int __devexit twl4030_rtc_remove(struct platform_device *pdev)
static void twl4030_rtc_shutdown(struct platform_device *pdev) static void twl4030_rtc_shutdown(struct platform_device *pdev)
{ {
mask_rtc_irq_bit(BIT_RTC_INTERRUPTS_REG_IT_TIMER_M | /* mask timer interrupts, but leave alarm interrupts on to enable
BIT_RTC_INTERRUPTS_REG_IT_ALARM_M); power-on when alarm is triggered */
mask_rtc_irq_bit(BIT_RTC_INTERRUPTS_REG_IT_TIMER_M);
} }
#ifdef CONFIG_PM #ifdef CONFIG_PM
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment