* [PATCH] rtc: rtc-twl4030 don't mask alarm interrupts on suspend
@ 2009-05-07 1:12 Kim Kyuwon
0 siblings, 0 replies; only message in thread
From: Kim Kyuwon @ 2009-05-07 1:12 UTC (permalink / raw)
To: LKML; +Cc: rtc-linux, OMAP, David Brownell, Kyungmin Park, p_gortmaker,
a.zummo
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:
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Of course, I've tested.
Regards,
Kyuwon
--
From: Kim Kyuwon <q1.kim@samsung.com>
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;
Signed-off-by: Kim Kyuwon <q1.kim@samsung.com>
---
drivers/rtc/rtc-twl4030.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/drivers/rtc/rtc-twl4030.c b/drivers/rtc/rtc-twl4030.c
index ad35f76..c185939 100644
--- a/drivers/rtc/rtc-twl4030.c
+++ b/drivers/rtc/rtc-twl4030.c
@@ -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;
}
--
1.5.2.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-05-07 1:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-07 1:12 [PATCH] rtc: rtc-twl4030 don't mask alarm interrupts on suspend Kim Kyuwon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox