diff options
author | Anson Huang <Anson.Huang@nxp.com> | 2018-03-20 15:25:51 +0800 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:30:59 +0800 |
commit | 73b5bf2768b17f74b63b6c4fe186e46d4625540c (patch) | |
tree | 879b8d663befc21289711f4344b619f463ba615e /drivers/rtc | |
parent | 868235ac8b579d906f858d4953cf479bf230344f (diff) |
MLK-17843 rtc: rtc-imx-rpmsg: fix alarm enable function
Add missing enable parameter for alarm enable function,
without correct parameter, the "enable" value is a random
value in memory and M4 may disable alarm unexpectedly.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Robin Gong <yibin.gong@nxp.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-imx-rpmsg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-imx-rpmsg.c b/drivers/rtc/rtc-imx-rpmsg.c index 308c1d54322b..82140af645ec 100644 --- a/drivers/rtc/rtc-imx-rpmsg.c +++ b/drivers/rtc/rtc-imx-rpmsg.c @@ -1,5 +1,5 @@ /* - * Copyright 2017 NXP + * Copyright 2017-2018 NXP * * The code contained herein is licensed under the GNU General Public * License. You may obtain a copy of the GNU General Public License @@ -199,6 +199,7 @@ static int imx_rpmsg_rtc_alarm_irq_enable(struct device *dev, msg.header.minor = IMX_RMPSG_MINOR; msg.header.type = RTC_RPMSG_SEND; msg.header.cmd = RTC_RPMSG_ENABLE_ALARM; + msg.enable = enable; ret = rtc_send_message(&msg, &rtc_rpmsg, true); if (ret) |