Skip to contentSkip to conversation

rtc: pcf8523: don't return invalid date when battery is low

DISCUSSION Baruch Siach 2 participants 2 messages Jun 13, 2019 – Jun 17, 2019 Stable branch

lore
Share & tools
lore
#0 lore raw

Hi stable kernel team,

Please consider upstream commit ecb4a353d3afd45 ("rtc: pcf8523: don't return invalid date when battery is low") for stable backport. As the commit log explains, this fixes bogus system date when RTC backup battery is low. With this fix date is set to the well known 01-01-1970 value instead.

This commit should be applicable to v4.9+.

Thanks,
baruch

--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- [email protected] - tel: +972.52.368.4656, http://www.tkos.co.il -

#1 lore raw
Quoted 9 lines · Baruch Siach

Hi stable kernel team,

Please consider upstream commit ecb4a353d3afd45 ("rtc: pcf8523: don't return invalid date when battery is low") for stable backport. As the commit log explains, this fixes bogus system date when RTC backup battery is low. With this fix date is set to the well known 01-01-1970 value instead.

This commit should be applicable to v4.9+.

Now queued up, thanks.

greg k-h