]> git.baikalelectronics.ru Git - kernel.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)
commite5cd0bd39a4e29d3744fcb25ae852aff7da2623e
tree2914abe3ded18f7ca5a5093bb108593358519b8f
parent725dc5120df3e562759f370e4506d9f7bd932641
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