MLK-13798: rtc: snvs: add a missing write sync
authorGuy Shapiro <guy.shapiro@mobi-wize.com>
Sun, 29 Jan 2017 09:57:19 +0000 (11:57 +0200)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:21:46 +0000 (15:21 -0500)
commitd131c35ff87cc5201faeaabc6e0f6b2fb7d2f2c0
treef772fb6a017ada7335496ea1931a073db81dd6b2
parentfa135e776eef32cef471ce649c16dbe3538f5d24
MLK-13798: rtc: snvs: add a missing write sync

The clear of the LPTA_EN flag should be synced before writing to the
alarm register. Omitting this synchronization creates a race when
trying to change existing alarm.

(cherry picked from commit 7bb633b1a9812a6b9f3e49d0cf17f60a633914e5)

Signed-off-by: Guy Shapiro <guy.shapiro@mobi-wize.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Tested-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Octavian Purdila <octavian.purdila@nxp.com>
drivers/rtc/rtc-snvs.c