OSDN Git Service

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)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 20 Aug 2020 22:19:55 +0000 (00:19 +0200)
commitf471b05f76e4b1b6ba07ebc7681920a5c5b97c5d
tree5fb6ed4e0025c558426a0164436ba8bc4d022b85
parent59ed0127155201863db49f3dc5fb41316433340a
rtc: ds1307: Clear OSF flag on DS1388 when setting time

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
drivers/rtc/rtc-ds1307.c