From: Biwen Li <biwen.li@nxp.com>
To: alexandre.belloni@bootlin.com, leoyang.li@nxp.com
Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org,
jiafei.pan@nxp.com, Biwen Li <biwen.li@nxp.com>
Subject: [PATCH] rtc: flextimer: report interrupt state to user mode
Date: Fri, 27 Mar 2020 16:44:57 +0800 [thread overview]
Message-ID: <20200327084457.45161-1-biwen.li@nxp.com> (raw)
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
next reply other threads:[~2020-03-27 8:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-27 8:44 Biwen Li [this message]
2020-03-29 20:04 ` Alexandre Belloni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200327084457.45161-1-biwen.li@nxp.com \
--to=biwen.li@nxp.com \
--cc=alexandre.belloni@bootlin.com \
--cc=jiafei.pan@nxp.com \
--cc=leoyang.li@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®