projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a86d6b2
)
rtc: sc27xx: Clear SPG value update interrupt status
author
Baolin Wang
<baolin.wang@linaro.org>
Thu, 18 Oct 2018 08:52:27 +0000
(16:52 +0800)
committer
Alexandre Belloni
<alexandre.belloni@bootlin.com>
Thu, 25 Oct 2018 00:35:38 +0000
(
02:35
+0200)
We should clear the SPG value update interrupt status once the SPG value
is updated successfully, in case incorrect status validation for next time.
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-sc27xx.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-sc27xx.c
b/drivers/rtc/rtc-sc27xx.c
index
8afba12
..
6ac5653
100644
(file)
--- a/
drivers/rtc/rtc-sc27xx.c
+++ b/
drivers/rtc/rtc-sc27xx.c
@@
-172,7
+172,8
@@
static int sprd_rtc_lock_alarm(struct sprd_rtc *rtc, bool lock)
return ret;
}
- return 0;
+ return regmap_write(rtc->regmap, rtc->base + SPRD_RTC_INT_CLR,
+ SPRD_RTC_SPG_UPD_EN);
}
static int sprd_rtc_get_secs(struct sprd_rtc *rtc, enum sprd_rtc_reg_types type,