Re: [PATCH 1/3] rtc: vr41xx: remove mktime usage

2018-05-16 Thread Arnd Bergmann
On Wed, May 16, 2018 at 9:55 AM, Alexandre Belloni wrote: > Hi, > > On 20/04/2018 18:14:24+0200, Arnd Bergmann wrote: >> This driver uses mktime() and rtc_time_to_tm() to convert between time >> values. This works fine on 64-bit kernels over the whole supported >> range, and the vr41xx chip is a 6

Re: [PATCH 1/3] rtc: vr41xx: remove mktime usage

2018-05-16 Thread Alexandre Belloni
Hi, On 20/04/2018 18:14:24+0200, Arnd Bergmann wrote: > This driver uses mktime() and rtc_time_to_tm() to convert between time > values. This works fine on 64-bit kernels over the whole supported > range, and the vr41xx chip is a 64-bit MIPS implementation, but it is > inconsistent because it does

[PATCH 1/3] rtc: vr41xx: remove mktime usage

2018-04-20 Thread Arnd Bergmann
This driver uses mktime() and rtc_time_to_tm() to convert between time values. This works fine on 64-bit kernels over the whole supported range, and the vr41xx chip is a 64-bit MIPS implementation, but it is inconsistent because it doesn't do the same thing on 32-bit kernels that overflow in 2106 o