[PATCH 0/2] rtc: ab-eoz9: fix the undervoltage handling

From: Maxime Chevallier
Date: Fri Nov 22 2024 - 05:11:25 EST


The AB EOZ9 can report if there are undervoltage conditions encountered
while the RTC is maintaining the date and time. This is useful when a
device is stored for a long amount of time without being used, to know
how reliable the reported date and time are at reboot.

Patch 1 reworks the user report of undervoltages by checking the lowest
threshold first.

Patch 2 makes so that we don't fail the temperature readout, as when the
system is currently running, the RTC battery should be at a nominal
voltage. Temperature-related undervoltage reports are about what
happened while the system was down, and not about the current state of
the power supply.

Maxime Chevallier (2):
rtc: ab-eoz9: check the lowest voltage threshold first
rtc: ab-eoz9: don't fail temperature reads on undervoltage
notification

drivers/rtc/rtc-ab-eoz9.c | 15 ++++-----------
1 file changed, 4 insertions(+), 11 deletions(-)

--
2.47.0