summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-as3722.c
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2015-05-21 17:29:35 +0200
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2015-06-25 01:13:38 +0200
commit119434f44c78df8c4b6d67f835448542a4bd7e91 (patch)
tree2b04a007a701505d64b3107e33117a19cb9209f0 /drivers/rtc/rtc-as3722.c
parent6c95fa80e6f3e111b738949111a94bfac5021721 (diff)
rtc: snvs: fix wakealarm by call enable_irq_wake earlier
When entering suspend while an wakeup alarm is set, enable_set_wake should make sure that the RTC interrupt keep being enabled and the .irq_set_wake for the RTC interrupt get called. However, since the driver uses the suspend_noirq callback, the call to enable_irq_wake has been made after disabling the interrupts. While .irq_set_wake has been called properly, the interrupt remained disabled. Use the suspend callback to call enable_irq_wake early enough to ensure the RTC interrupt remains enabled. Fixes: 7654e9d4fd8f ("drivers/rtc/rtc-snvs: fix suspend/resume") Cc: <stable@vger.kernel.org> # 3.19 Signed-off-by: Stefan Agner <stefan@agner.ch> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc/rtc-as3722.c')
0 files changed, 0 insertions, 0 deletions