[rtc-linux] Re: [PATCH v2 0/3] rtc: make st-lpc robust against y2038/2106 bug

2017-07-04 Thread Benjamin Gaignard
2017-06-24 0:34 GMT+02:00 Shuah Khan : > Hi Alexandre, > > On 06/23/2017 04:09 PM, Alexandre Belloni wrote: >> On 23/06/2017 at 13:40:41 -0600, Shuah Khan wrote: >>> On 06/19/2017 03:36 AM, Benjamin Gaignard wrote: On 32bits platforms "struct timeval" or "time_t" are using u32 to code the

[rtc-linux] Re: [PATCH 1/2] RTC: s35390a: handle invalid RTC time

2017-07-04 Thread Alexandre Belloni
On 04/07/2017 at 10:55:52 +0200, Fabien Lahoudere wrote: > On Thu, 2017-06-29 at 09:56 +0200, Alexandre Belloni wrote: > > On 26/06/2017 at 11:51:13 +0200, Fabien Lahoudere wrote: > > > > Actually, after reading the datasheet, I realize it is only POC that is > > > > reset to 0 after reading so isi

[rtc-linux] Re: [PATCH 1/2] RTC: s35390a: handle invalid RTC time

2017-07-04 Thread Fabien Lahoudere
On Thu, 2017-06-29 at 09:56 +0200, Alexandre Belloni wrote: > On 26/06/2017 at 11:51:13 +0200, Fabien Lahoudere wrote: > > > Actually, after reading the datasheet, I realize it is only POC that is > > > reset to 0 after reading so isinvalid is not needed. Just read status1 > > > and look for BLD in