summaryrefslogtreecommitdiff
path: root/drivers/rtc
diff options
context:
space:
mode:
authorBiwen Li <biwen.li@nxp.com>2020-03-27 11:44:57 +0300
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2020-03-29 23:01:49 +0300
commit9c328c9dd84a10d4c96a5bfaa0bee43c94b11def (patch)
treeaf40824894b3c7207c6612def6e9fbb745626cee /drivers/rtc
parent8c229ab6048b796aa8197d64eb2f9182d828ff61 (diff)
downloadlinux-9c328c9dd84a10d4c96a5bfaa0bee43c94b11def.tar.xz
rtc: fsl-ftm-alarm: report alarm to core
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>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-fsl-ftm-alarm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-fsl-ftm-alarm.c b/drivers/rtc/rtc-fsl-ftm-alarm.c
index 0f4142b35f38..756af62b0486 100644
--- 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);