]> git.hungrycats.org Git - linux/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 12:54:31 +0000 (13:54 +0100)
commitfc9af4c0cf467b0e7a03f3cb71810e8de5235d7d
tree65c61eab0f88f7fa24eb7185d7129d54fb0fc33d
parentcd7f8c72dd989730156799ac4f384518ecf38c9a
rtc: ab-eoz9: don't fail temperature reads on undervoltage notification

[ Upstream commit e0779a0dcf41a6452ac0a169cd96863feb5787c7 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/rtc/rtc-ab-eoz9.c