rtc: m41t80: kickstart ocillator upon failure
authorA. Niyas Ahamed Mydeen <nmydeen@mvista.com>
Wed, 2 Apr 2025 12:05:46 +0000 (17:35 +0530)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 25 May 2025 21:56:13 +0000 (23:56 +0200)
commit1a7ed2fffbe3096f1b15787b913547db887733c3
treed6dbe4707cd2d487e425b2c593e1e14e617dc423
parent818b6709e1cb0637cbdc67402c17759df39471b4
rtc: m41t80: kickstart ocillator upon failure

The ocillator on the m41t62 (and other chips of this type) needs
a kickstart upon a failure; the RTC read routine will notice the
oscillator failure and fail reads.  This is added in the RTC write
routine; this allows the system to know that the time in the RTC
is accurate.  This is following the procedure described in section
3.11 of  "https://www.st.com/resource/en/datasheet/m41t62.pdf"

Signed-off-by: A. Niyas Ahamed Mydeen <nmydeen@mvista.com>
Reviewed-by: Corey Minyard <cminyard@mvista.com>
Link: https://lore.kernel.org/r/20250402120546.336657-2-nmydeen@mvista.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-m41t80.c