]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Dec 2018 13:11:40 +0000 (14:11 +0100)
commit54dbda74475e4e6fa8fd353c2cc599bda51fc5cc
treebfb99f77079de9dd1c010b4e606985c98e7b4045
parent36764b4a4363ef6dc5a6335acd3157c9dc94ebe4
rtc: snvs: add a missing write sync

[ Upstream commit 7bb633b1a9812a6b9f3e49d0cf17f60a633914e5 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/rtc/rtc-snvs.c