Skip to contentSkip to conversation

rtc: flextimer: report interrupt state to user mode

PATCH Applied Biwen Li 2 participants 2 messages Mar 27, 2020 – Mar 29, 2020 Real time clock (RTC)

lore
Share & tools
lore

Biwen Li

author
#0 lore raw

PATCH 1/1 rtc: flextimer: report interrupt state to user mode

Report interrupt state to user mode

---
 drivers/rtc/rtc-fsl-ftm-alarm.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/rtc/rtc-fsl-ftm-alarm.c +2 -0
index 8df2075af9a2..d7fa6c16f47b 100644
@@ -151,6 +151,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);
Signature · 1 line
2.17.1
maintainer Applied
#1 lore raw
Quoted 7 lines · Biwen Li

Report interrupt state to user mode

---
 drivers/rtc/rtc-fsl-ftm-alarm.c | 2 ++
 1 file changed, 2 insertions(+)

Applied, thanks. I reworked the commit message because the alarm is not necessarily going to userspace.

Signature · 3 lines
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com