OSDN Git Service

rtc: qpnp-rtc: Read ALARM_EN and update to alarm enabled status
authorMao Jinlong <c_jmao@codeaurora.org>
Wed, 2 Aug 2017 08:14:19 +0000 (16:14 +0800)
committerMao Jinlong <jinlmao@codeaurora.org>
Wed, 12 Sep 2018 05:58:56 +0000 (11:28 +0530)
commit0ae1ba07da10de410d24238d6e6f4f37628fedee
treeaa0b0ddf377912b4cc022c9a9bff2d3f85292b09
parentf7d188b0fffa1e29557d4448760db29e6fbb5b45
rtc: qpnp-rtc: Read ALARM_EN and update to alarm enabled status

ALARM_EN status is retained in PMIC register after device shutdown
if poweron_alarm is enabled. Read it to make sure the driver has
consistent value with the register status.

Change-Id: Iee0a19ba5126265b36a353c1d1b249d09185564a
Signed-off-by: Mao Jinlong <c_jmao@codeaurora.org>
drivers/rtc/qpnp-rtc.c