[PATCH] rtc: cmos: ignore bogus century byte

2019-01-06 Thread Eric Wong
Older versions of Libreboot and Coreboot had an invalid value (`3' in my case) in the century byte affecting the GM45 in the Thinkpad X200. Not everybody's updated their firmwares, and Linux <= 4.2 was able to read the RTC without problems, so workaround this by ignoring invalid values. Fixes: 3c

Re: [PATCH] rtc: cmos: ignore bogus century byte

2019-01-22 Thread Alexandre Belloni
On 06/01/2019 08:21:03+, Eric Wong wrote: > Older versions of Libreboot and Coreboot had an invalid value > (`3' in my case) in the century byte affecting the GM45 in > the Thinkpad X200. Not everybody's updated their firmwares, > and Linux <= 4.2 was able to read the RTC without problems, > s

Re: [PATCH] rtc: cmos: ignore bogus century byte

2019-01-10 Thread Alexandre Belloni
On 06/01/2019 08:21:03+, Eric Wong wrote: > Older versions of Libreboot and Coreboot had an invalid value > (`3' in my case) in the century byte affecting the GM45 in > the Thinkpad X200. Not everybody's updated their firmwares, > and Linux <= 4.2 was able to read the RTC without problems, > s

Re: [PATCH] rtc: cmos: ignore bogus century byte

2019-01-10 Thread Eric Wong
Alexandre Belloni wrote: > Does this mean that it is set to an invalid value and that in is not > getting updated properly in mc146818_set_time? It seems to be set/updated without trouble while the machine is on. It's only on a cold boot (from poweroff or hibernate) that the value is invalid. P