From: matti.halme@nokia.com Date: Wed, 7 Jan 2009 07:10:07 +0000 (+0200) Subject: Don't mask rtc-twl4030 alarm interrupts on shutdown X-Git-Tag: v2.6.28-omap1~10 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=19d34d9aaf0c830dd9456731a7bb85b51670c1a7;p=linux-2.6-omap-h63xx.git 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: Matti Halme Signed-off-by: Tony Lindgren --- diff --git a/drivers/rtc/rtc-twl4030.c b/drivers/rtc/rtc-twl4030.c index 01d8da9afdc..d933d097c38 100644 --- a/drivers/rtc/rtc-twl4030.c +++ b/drivers/rtc/rtc-twl4030.c @@ -505,8 +505,9 @@ static int __devexit twl4030_rtc_remove(struct platform_device *pdev) static void twl4030_rtc_shutdown(struct platform_device *pdev) { - mask_rtc_irq_bit(BIT_RTC_INTERRUPTS_REG_IT_TIMER_M | - BIT_RTC_INTERRUPTS_REG_IT_ALARM_M); + /* mask timer interrupts, but leave alarm interrupts on to enable + power-on when alarm is triggered */ + mask_rtc_irq_bit(BIT_RTC_INTERRUPTS_REG_IT_TIMER_M); } #ifdef CONFIG_PM