summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2018-12-05 17:00:09 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-19 08:21:00 +0200
commit3177ab541ba8b875d0cdb85e9813f5402e59714d (patch)
treefa353c3724df3f32ee97bf324d7f8d42ce712e5c /Makefile
parent488beeebddaf563aed96c27aa78c520a00f1a30f (diff)
downloadlinux-stable-3177ab541ba8b875d0cdb85e9813f5402e59714d.tar.gz
linux-stable-3177ab541ba8b875d0cdb85e9813f5402e59714d.tar.bz2
linux-stable-3177ab541ba8b875d0cdb85e9813f5402e59714d.zip
rtc: pcf8523: don't return invalid date when battery is low
commit ecb4a353d3afd45b9bb30c85d03ee113a0589079 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>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions