Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>
Acked-by: David Brownell <david-b@pacbell.net>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Kim Kyuwon and committed by
Linus Torvalds
f993004d ecf4667d

+1 -3
+1 -3
drivers/rtc/rtc-twl4030.c
··· 495 495 { 496 496 irqstat = rtc_irq_bits; 497 497 498 - /* REVISIT alarm may need to wake us from sleep */ 499 - mask_rtc_irq_bit(BIT_RTC_INTERRUPTS_REG_IT_TIMER_M | 500 - BIT_RTC_INTERRUPTS_REG_IT_ALARM_M); 498 + mask_rtc_irq_bit(BIT_RTC_INTERRUPTS_REG_IT_TIMER_M); 501 499 return 0; 502 500 } 503 501