[PATCH v1] RFC: rtc: rv8803: avoid bootloop on low voltage of button cell

Oliver Graute oliver.graute at kococonnector.com
Wed Feb 8 08:38:40 CET 2023


if the rtc button cell is on low voltage this can result in a permanent
bootloop in u-boot because V2F Register is permanent set.

### Warning: temperature compensation has stopped
### Warning: Voltage low, data is invalid
resetting ...

With this patch the bootloop is prevented

Signed-off-by: Oliver Graute <oliver.graute at kococonnector.com>
---
 drivers/rtc/rv8803.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/rtc/rv8803.c b/drivers/rtc/rv8803.c
index 06a4ae89fa..75debac607 100644
--- a/drivers/rtc/rv8803.c
+++ b/drivers/rtc/rv8803.c
@@ -79,7 +79,6 @@ static int rv8803_rtc_get(struct udevice *dev, struct rtc_time *tm)
 
 	if (flags & RTC_FLAG_BIT_V2F) {
 		printf("### Warning: Voltage low, data is invalid\n");
-		return -1;
 	}
 
 	ret = dm_i2c_read(dev, 0, buf, sizeof(buf));
-- 
2.17.1



More information about the U-Boot mailing list