Re: [PATCH] [RESEND] scsi: ips: fix firmware timestamps for 32-bit

2018-01-18 Thread Arnd Bergmann
On Thu, Jan 18, 2018 at 10:35 AM, Finn Thain wrote: > On Wed, 17 Jan 2018, Arnd Bergmann wrote: > >> do_gettimeofday() is deprecated since it will stop working in 2038 on >> 32-bit platforms. The firmware interface here actually supports times >> until year 25500, so we should use longer timestamp

Re: [PATCH] [RESEND] scsi: ips: fix firmware timestamps for 32-bit

2018-01-18 Thread Finn Thain
On Wed, 17 Jan 2018, Arnd Bergmann wrote: > do_gettimeofday() is deprecated since it will stop working in 2038 on > 32-bit platforms. The firmware interface here actually supports times > until year 25500, so we should use longer timestamps. > I think that reasoning is flawed. If the firmware su

[PATCH] [RESEND] scsi: ips: fix firmware timestamps for 32-bit

2018-01-17 Thread Arnd Bergmann
do_gettimeofday() is deprecated since it will stop working in 2038 on 32-bit platforms. The firmware interface here actually supports times until year 25500, so we should use longer timestamps. Using ktime_get_real_seconds() to get a 64-bit seconds value and time64_to_tm() to convert it into the r