]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rtc: ds1307: Clear OSF flag on DS1388 when setting time
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Tue, 18 Aug 2020 01:35:43 +0000 (13:35 +1200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2020 09:08:04 +0000 (10:08 +0100)
commitd39ced9254b66af3f4e20e9a5bb196757bca06f2
tree4a7b56311d6a138abbee248909be49af5e2766a2
parent5e2918d95f799487b4be3f8a5107315d41626c93
rtc: ds1307: Clear OSF flag on DS1388 when setting time

[ Upstream commit f471b05f76e4b1b6ba07ebc7681920a5c5b97c5d ]

Ensure the OSF flag is cleared on the DS1388 when the clock is set.

Fixes: df11b323b16f ("rtc: ds1307: handle oscillator failure flags for ds1388 variant")
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20200818013543.4283-1-chris.packham@alliedtelesis.co.nz
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/rtc/rtc-ds1307.c