2020-03-27 08:49:31

by Biwen Li

[permalink] [raw]
Subject: [PATCH] rtc: flextimer: report interrupt state to user mode

Report interrupt state to user mode

Signed-off-by: Biwen Li <[email protected]>
---
drivers/rtc/rtc-fsl-ftm-alarm.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/rtc/rtc-fsl-ftm-alarm.c b/drivers/rtc/rtc-fsl-ftm-alarm.c
index 8df2075af9a2..d7fa6c16f47b 100644
--- a/drivers/rtc/rtc-fsl-ftm-alarm.c
+++ b/drivers/rtc/rtc-fsl-ftm-alarm.c
@@ -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);
--
2.17.1


2020-03-29 20:18:28

by Alexandre Belloni

[permalink] [raw]
Subject: Re: [PATCH] rtc: flextimer: report interrupt state to user mode

On 27/03/2020 16:44:57+0800, Biwen Li wrote:
> Report interrupt state to user mode
>
> Signed-off-by: Biwen Li <[email protected]>
> ---
> 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.

--
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com