On 05/12/2018 17:00:09+0200, Baruch Siach wrote: > The RTC_VL_READ ioctl reports the low battery condition. Still, > pcf8523_rtc_read_time() happily returns invalid dates in this case. > Check the battery health on pcf8523_rtc_read_time() to avoid that. > > Reported-by: Erik Čuk <erik.cuk@xxxxxxxxx> > Signed-off-by: Baruch Siach <baruch@xxxxxxxxxx> > --- > drivers/rtc/rtc-pcf8523.c | 32 ++++++++++++++++++++++++-------- > 1 file changed, 24 insertions(+), 8 deletions(-) > Applied, thanks. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com