Re: [PATCH] rtc: pm8xxx: clear alarm register when alarm is not enabled

From: Alexandre Belloni
Date: Sun Mar 22 2020 - 17:33:49 EST


On 21/03/2020 19:50:17+0800, éçæ wrote:
> Clear alarm register when alarm is not enabled otherwise the consumer
> may still start alarm timer if it find the alarm register is not zero.
>
> Signed-off-by: hankecai <hankecai@xxxxxxxx>
> ---
> drivers/rtc/rtc-pm8xxx.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/drivers/rtc/rtc-pm8xxx.c b/drivers/rtc/rtc-pm8xxx.c

Because the other one doesn't apply, I've applied that one.

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