aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-sc27xx.c
diff options
context:
space:
mode:
authorBaolin Wang <baolin.wang@linaro.org>2019-09-05 15:03:30 +0800
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2019-09-10 16:14:13 +0200
commite02e3ddac7722b879b6f3c781b45beea2173f562 (patch)
treef156f18bb8517fd9a3199e7975189cba7fac3a1e /drivers/rtc/rtc-sc27xx.c
parent4a9eb8154ffd26a56121a4a531b04cf32942a49b (diff)
downloadlinux-e02e3ddac7722b879b6f3c781b45beea2173f562.tar.gz
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: Baolin Wang <baolin.wang@linaro.org> Link: https://lore.kernel.org/r/1f75310242de75b14d8973538bf96efffb395daf.1567666894.git.baolin.wang@linaro.org Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-sc27xx.c')
-rw-r--r--drivers/rtc/rtc-sc27xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-sc27xx.c b/drivers/rtc/rtc-sc27xx.c
index 3474f7a204933..b956768997508 100644
--- a/drivers/rtc/rtc-sc27xx.c
+++ b/drivers/rtc/rtc-sc27xx.c
@@ -138,7 +138,7 @@ static int sprd_rtc_lock_alarm(struct sprd_rtc *rtc, bool lock)
if (ret)
return ret;
- val &= ~(SPRD_RTC_ALMLOCK_MASK | SPRD_RTC_POWEROFF_ALM_FLAG);
+ val &= ~SPRD_RTC_ALMLOCK_MASK;
if (lock)
val |= SPRD_RTC_ALM_LOCK;
else