]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: rv8803: Clear V1F when setting the time
authorBenoît Thébaudeau <benoit@wsystem.com>
Thu, 21 Jul 2016 10:41:32 +0000 (12:41 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 28 Jul 2016 07:59:43 +0000 (09:59 +0200)
commit1ec1ff52c708eeec81bc9a5710b01500aaec6fee
tree6a5708dc0270a37ab116e6db8c2184f1762a1228
parent99c9d143257f846f0058a83a4b6b8dbfde70e486
rtc: rv8803: Clear V1F when setting the time

V1F indicates that the time accuracy may have been compromised because
of a voltage drop (possibly only temporary) below VLOW1, which stops the
temperature compensation. When the time is set, the accuracy is
restored, so V1F should be cleared in order to indicate this and to be
able to detect the next temperature compensation loss. This is the same
principle as for V2F, which is cleared when the time is set to indicate
that the time is no longer invalid and to be able to detect the next
data loss.

Signed-off-by: Benoît Thébaudeau <benoit@wsystem.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-rv8803.c