rtc: pm8xxx: Fix issue in RTC write path
authorMohit Aggarwal <maggarwa@codeaurora.org>
Mon, 5 Mar 2018 09:05:58 +0000 (14:35 +0530)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 17 Mar 2018 13:20:52 +0000 (14:20 +0100)
commit83220bf38b77a830f8e62ab1a0d0408304f9b966
treef0498dff574867022fb21d74e82178e4d05706d4
parente22e2d941c948c682b0a3fb293c277993b81dc46
rtc: pm8xxx: Fix issue in RTC write path

In order to set time in rtc, need to disable
rtc hw before writing into rtc registers.

Also fixes disabling of alarm while setting
rtc time.

Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-pm8xxx.c