]> asedeno.scripts.mit.edu Git - linux.git/commit
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)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 1 Feb 2017 11:44:24 +0000 (12:44 +0100)
commit7bb633b1a9812a6b9f3e49d0cf17f60a633914e5
tree2914abe3ded18f7ca5a5093bb108593358519b8f
parent4c466872d8ae8e3cdc3e5e1a47e28a15e3020d8b
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.

Signed-off-by: Guy Shapiro <guy.shapiro@mobi-wize.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-snvs.c