rtc: pcf8523: fix for stop bit
authorpaulmn <paulmn@axis.com>
Mon, 29 Aug 2022 12:46:39 +0000 (14:46 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 16 Nov 2022 22:20:30 +0000 (23:20 +0100)
commitfe0157ba679dc95407dd5eae6550a4ceaea75040
tree6e70d0d3a9b8580a99bb651c36deafabd18b9b3c
parenteec79501cce6e8965e92174760c6a9e92d78a038
rtc: pcf8523: fix for stop bit

Bugfix for an issue detected when a goldcap capacitor gets
fully discharged due to a long absence of the power supply,
and then recharges again. The RTC failed to continue to keep
the real-time clock.

This was caused by the incorrect handling of the STOP bit in
the RTC internal register.  This fix solves the problem.

Signed-off-by: paulmn <paulmn@axis.com>
Link: https://lore.kernel.org/r/20220829124639.10906-1-paulmn@axis.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-pcf8523.c