Skip to contentSkip to conversation

rtc: rtc-twl4030 don't mask alarm interrupts on suspend

PATCH New Kim Kyuwon 1 participant 1 message May 7, 2009 Real time clock (RTC)

lore
Share & tools
lore

Kim Kyuwon

author
#0 lore raw

PATCH 1/1 rtc: rtc-twl4030 don't mask alarm interrupts on suspend

Hi All,

This patch was originally sent to linux-omap mailing list. (Please refer to http://markmail.org/thread/o643d7w224zo3i7n)

David Brownell said, if I've tested this:

Of course, I've tested.

Regards,
Kyuwon
--
From: Kim Kyuwon <[email protected]>
Subject: [PATCH] rtc: rtc-twl4030 don't mask alarm interrupts on suspend

This patch enables the alarm interrupt of TWL4030 RTC to wake up the system from suspend. You can test this patch with following command.

# echo +10 > /sys/class/rtc/rtc0/wakealarm; echo mem > /sys/power/state;
---
 drivers/rtc/rtc-twl4030.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/rtc/rtc-twl4030.c +1 -3
index ad35f76..c185939 100644
@@ -495,9 +495,7 @@ static int twl4030_rtc_suspend(struct platform_device *pdev, pm_message_t state)
 {
 	irqstat = rtc_irq_bits;
 
-	/* REVISIT alarm may need to wake us from sleep */
-	mask_rtc_irq_bit(BIT_RTC_INTERRUPTS_REG_IT_TIMER_M |
-			 BIT_RTC_INTERRUPTS_REG_IT_ALARM_M);
+	mask_rtc_irq_bit(BIT_RTC_INTERRUPTS_REG_IT_TIMER_M);
 	return 0;
 }
 
Signature · 1 line
1.5.2.5