提交 e02e3dda 编写于 作者: B Baolin Wang 提交者: Alexandre Belloni

rtc: sc27xx: Remove clearing SPRD_RTC_POWEROFF_ALM_FLAG flag

The SPRD_RTC_POWEROFF_ALM_FLAG flag is used to indicate if a poweroff alarm
is set, which can power on the system when system in power-off status.

And the bootloader will validate this flag to check if the booting mode is
alarm booting mode, thus we should not clear this flag in kernel, instead
bootloader will clear this flag after checking the booting mode.
Signed-off-by: NBaolin Wang <baolin.wang@linaro.org>
Link: https://lore.kernel.org/r/1f75310242de75b14d8973538bf96efffb395daf.1567666894.git.baolin.wang@linaro.orgSigned-off-by: NAlexandre Belloni <alexandre.belloni@bootlin.com>
上级 4a9eb815
...@@ -138,7 +138,7 @@ static int sprd_rtc_lock_alarm(struct sprd_rtc *rtc, bool lock) ...@@ -138,7 +138,7 @@ static int sprd_rtc_lock_alarm(struct sprd_rtc *rtc, bool lock)
if (ret) if (ret)
return ret; return ret;
val &= ~(SPRD_RTC_ALMLOCK_MASK | SPRD_RTC_POWEROFF_ALM_FLAG); val &= ~SPRD_RTC_ALMLOCK_MASK;
if (lock) if (lock)
val |= SPRD_RTC_ALM_LOCK; val |= SPRD_RTC_ALM_LOCK;
else else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册