linux-rtc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] rtc: flextimer: report interrupt state to user mode
@ 2020-03-27  8:44 Biwen Li
  2020-03-29 20:04 ` Alexandre Belloni
  0 siblings, 1 reply; 2+ messages in thread
From: Biwen Li @ 2020-03-27  8:44 UTC (permalink / raw)
  To: alexandre.belloni, leoyang.li
  Cc: linux-rtc, linux-kernel, jiafei.pan, Biwen Li

Report interrupt state to user mode

Signed-off-by: Biwen Li <biwen.li@nxp.com>
---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] rtc: flextimer: report interrupt state to user mode
  2020-03-27  8:44 [PATCH] rtc: flextimer: report interrupt state to user mode Biwen Li
@ 2020-03-29 20:04 ` Alexandre Belloni
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Belloni @ 2020-03-29 20:04 UTC (permalink / raw)
  To: Biwen Li; +Cc: leoyang.li, linux-rtc, linux-kernel, jiafei.pan

On 27/03/2020 16:44:57+0800, Biwen Li wrote:
> Report interrupt state to user mode
> 
> Signed-off-by: Biwen Li <biwen.li@nxp.com>
> ---
>  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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-29 20:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-27  8:44 [PATCH] rtc: flextimer: report interrupt state to user mode Biwen Li
2020-03-29 20:04 ` Alexandre Belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).