summaryrefslogtreecommitdiff
path: root/drivers/dma/virt-dma.c
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:18:07 +0200
commit90fc261d509ea9a0314a2b4973d3e9622b34db2b (patch)
treed303a393879d2cebe73d3824e8928c7b2c5e7c0b /drivers/dma/virt-dma.c
parent04757d0e37897cdfa59050157b9083d661bd099e (diff)
downloadlinux-rpi3-90fc261d509ea9a0314a2b4973d3e9622b34db2b.tar.gz
linux-rpi3-90fc261d509ea9a0314a2b4973d3e9622b34db2b.tar.bz2
linux-rpi3-90fc261d509ea9a0314a2b4973d3e9622b34db2b.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 'drivers/dma/virt-dma.c')
0 files changed, 0 insertions, 0 deletions