Re: [PATCH] rtc: pcf8523: don't return invalid date when battery is low

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux