Files
twx-linux/drivers
Baruch Siach 90fc261d50 rtc: pcf8523: don't return invalid date when battery is low
commit ecb4a353d3 upstream.

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@domel.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-06-19 08:18:07 +02:00
..
2019-05-31 06:46:31 -07:00
2019-06-15 11:54:11 +02:00
2019-06-19 08:18:00 +02:00
2019-05-14 19:17:53 +02:00
2019-06-19 08:18:04 +02:00
2019-06-19 08:18:06 +02:00
2019-04-27 09:36:31 +02:00
2019-05-31 06:46:14 -07:00