scsi: bfa: improve bfa_ioc_send_enable/disable data
authorArnd Bergmann <arnd@arndb.de>
Fri, 10 Nov 2017 15:37:11 +0000 (16:37 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 5 Dec 2017 01:32:52 +0000 (20:32 -0500)
commit03d32af33d9143aa4b3fad150b32325d184ecb81
treecf1811c8cbaf0702890aa6dde5db00b9ce5e8346
parent8f604a036bce849a3410f4940fa09e8eb2760bbf
scsi: bfa: improve bfa_ioc_send_enable/disable data

In bfa_ioc_send_enable, we use the deprecated do_gettimeofday() function
to read the current time. This is not a problem, since the firmware
interface is already limited to 32-bit timestamps, but it's better to
use ktime_get_seconds() and document what the limitation is.

I noticed that I did the same change in commit a5af83925363 ("bna: avoid
writing uninitialized data into hw registers") for the ethernet
driver. That commit also changed the "disable" funtion to initialize the
data we pass to the firmware properly, so I'm doing the same thing here.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Anil Gurumurthy <Anil.Gurumurthy@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/bfa/bfa_ioc.c