mbox series

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

Message ID 20241122101031.68916-1-maxime.chevallier@bootlin.com
Headers show
Series rtc: ab-eoz9: fix the undervoltage handling | expand

Message

Maxime Chevallier Nov. 22, 2024, 10:10 a.m. UTC
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(-)