Skip to content

Commit e0779a0

Browse files
minimaxwellalexandrebelloni
authored andcommitted
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: 67075b6 ("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>
1 parent 3ed345c commit e0779a0

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

drivers/rtc/rtc-ab-eoz9.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -394,13 +394,6 @@ static int abeoz9z3_temp_read(struct device *dev,
394394
if (ret < 0)
395395
return ret;
396396

397-
if ((val & ABEOZ9_REG_CTRL_STATUS_V1F) ||
398-
(val & ABEOZ9_REG_CTRL_STATUS_V2F)) {
399-
dev_err(dev,
400-
"thermometer might be disabled due to low voltage\n");
401-
return -EINVAL;
402-
}
403-
404397
switch (attr) {
405398
case hwmon_temp_input:
406399
ret = regmap_read(regmap, ABEOZ9_REG_REG_TEMP, &val);

0 commit comments

Comments
 (0)