projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c229ab
)
rtc: fsl-ftm-alarm: report alarm to core
author
Biwen Li
<biwen.li@nxp.com>
Fri, 27 Mar 2020 08:44:57 +0000
(16:44 +0800)
committer
Alexandre Belloni
<alexandre.belloni@bootlin.com>
Sun, 29 Mar 2020 20:01:49 +0000
(22:01 +0200)
Report interrupt state to the RTC core.
Signed-off-by: Biwen Li <biwen.li@nxp.com>
Link:
https://lore.kernel.org/r/20200327084457.45161-1-biwen.li@nxp.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-fsl-ftm-alarm.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-fsl-ftm-alarm.c
b/drivers/rtc/rtc-fsl-ftm-alarm.c
index 0f4142b35f38824cfb8f9ab439df6245ab73af1e..756af62b0486c94025d370e390a7b94fab03844d 100644
(file)
--- a/
drivers/rtc/rtc-fsl-ftm-alarm.c
+++ b/
drivers/rtc/rtc-fsl-ftm-alarm.c
@@
-152,6
+152,8
@@
static irqreturn_t ftm_rtc_alarm_interrupt(int irq, void *dev)
{
struct ftm_rtc *rtc = dev;
+ rtc_update_irq(rtc->rtc_dev, 1, RTC_IRQF | RTC_AF);
+
ftm_irq_acknowledge(rtc);
ftm_irq_disable(rtc);
ftm_clean_alarm(rtc);