]> www.infradead.org Git - nvme.git/commit
rtc: ab-eoz9: don't fail temperature reads on undervoltage notification
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Fri, 22 Nov 2024 10:10:30 +0000 (11:10 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 25 Nov 2024 22:34:12 +0000 (23:34 +0100)
commite0779a0dcf41a6452ac0a169cd96863feb5787c7
treef81eb70de6dad13382a2babcfcb038933a70a29a
parent3ed345c948ef6ccd0f5dc85c5b6731593b4591f7
rtc: ab-eoz9: don't fail temperature reads on undervoltage notification

The undervoltage flags reported by the RTC are useful to know if the
time and date are reliable after a reboot. Although the threshold VLOW1
indicates that the thermometer has been shutdown and time compensation
is off, it doesn't mean that the temperature readout is currently
impossible.

As the system is running, the RTC voltage is now fully established and
we can read the temperature.

Fixes: 67075b63cce2 ("rtc: add AB-RTCMC-32.768kHz-EOZ9 RTC support")
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://lore.kernel.org/r/20241122101031.68916-3-maxime.chevallier@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ab-eoz9.c