[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241122101031.68916-1-maxime.chevallier@bootlin.com>
Date: Fri, 22 Nov 2024 11:10:28 +0100
From: Maxime Chevallier <maxime.chevallier@...tlin.com>
To: Alexandre Belloni <alexandre.belloni@...tlin.com>,
Artem Panfilov <panfilov.artyom@...il.com>
Cc: Maxime Chevallier <maxime.chevallier@...tlin.com>,
linux-rtc@...r.kernel.org,
linux-kernel@...r.kernel.org,
Alexis Lothoré <alexis.lothore@...tlin.com>,
thomas.petazzoni@...tlin.com
Subject: [PATCH 0/2] rtc: ab-eoz9: fix the undervoltage handling
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
Powered by blists - more mailing lists