Skip to content

Commit 9a066ee

Browse files
minimaxwellgregkh
authored andcommitted
rtc: ab-eoz9: don't fail temperature reads on undervoltage notification
[ Upstream commit e0779a0 ] 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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent cc0075c commit 9a066ee

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

drivers/rtc/rtc-ab-eoz9.c

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

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

0 commit comments

Comments
 (0)