diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-11-13 23:35:54 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-11-13 23:35:54 -0500 |
commit | d83763f4a6adb2f417c3288ee903982985ae949c (patch) | |
tree | 610a7cfd32935ce4b555dc832c26ddeb13dcd003 /drivers/scsi/pmcraid.c | |
parent | 9aa3d651a9199103eb6451aeb0ac1b66a6d770a6 (diff) | |
parent | 0a5149ba02bdf75281b8bc94cf6dfa94c527fa6f (diff) |
Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull final round of SCSI updates from James Bottomley:
"Sorry for the delay in this patch which was mostly caused by getting
the merger of the mpt2/mpt3sas driver, which was seen as an essential
item of maintenance work to do before the drivers diverge too much.
Unfortunately, this caused a compile failure (detected by linux-next),
which then had to be fixed up and incubated.
In addition to the mpt2/3sas rework, there are updates from pm80xx,
lpfc, bnx2fc, hpsa, ipr, aacraid, megaraid_sas, storvsc and ufs plus
an assortment of changes including some year 2038 issues, a fix for a
remove before detach issue in some drivers and a couple of other minor
issues"
* tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (141 commits)
mpt3sas: fix inline markers on non inline function declarations
sd: Clear PS bit before Mode Select.
ibmvscsi: set max_lun to 32
ibmvscsi: display default value for max_id, max_lun and max_channel.
mptfusion: don't allow negative bytes in kbuf_alloc_2_sgl()
scsi: pmcraid: replace struct timeval with ktime_get_real_seconds()
mvumi: 64bit value for seconds_since1970
be2iscsi: Fix bogus WARN_ON length check
scsi_scan: don't dump trace when scsi_prep_async_scan() is called twice
mpt3sas: Bump mpt3sas driver version to 09.102.00.00
mpt3sas: Single driver module which supports both SAS 2.0 & SAS 3.0 HBAs
mpt2sas, mpt3sas: Update the driver versions
mpt3sas: setpci reset kernel oops fix
mpt3sas: Added OEM Gen2 PnP ID branding names
mpt3sas: Refcount fw_events and fix unsafe list usage
mpt3sas: Refcount sas_device objects and fix unsafe list usage
mpt3sas: sysfs attribute to report Backup Rail Monitor Status
mpt3sas: Ported WarpDrive product SSS6200 support
mpt3sas: fix for driver fails EEH, recovery from injected pci bus error
mpt3sas: Manage MSI-X vectors according to HBA device type
...
Diffstat (limited to 'drivers/scsi/pmcraid.c')
-rw-r--r-- | drivers/scsi/pmcraid.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c index ed31d8cc6266..b2a88200fe54 100644 --- a/drivers/scsi/pmcraid.c +++ b/drivers/scsi/pmcraid.c | |||
@@ -45,6 +45,7 @@ | |||
45 | #include <asm/processor.h> | 45 | #include <asm/processor.h> |
46 | #include <linux/libata.h> | 46 | #include <linux/libata.h> |
47 | #include <linux/mutex.h> | 47 | #include <linux/mutex.h> |
48 | #include <linux/ktime.h> | ||
48 | #include <scsi/scsi.h> | 49 | #include <scsi/scsi.h> |
49 | #include <scsi/scsi_host.h> | 50 | #include <scsi/scsi_host.h> |
50 | #include <scsi/scsi_device.h> | 51 | #include <scsi/scsi_device.h> |
@@ -4254,7 +4255,6 @@ static struct scsi_host_template pmcraid_host_template = { | |||
4254 | .use_clustering = ENABLE_CLUSTERING, | 4255 | .use_clustering = ENABLE_CLUSTERING, |
4255 | .shost_attrs = pmcraid_host_attrs, | 4256 | .shost_attrs = pmcraid_host_attrs, |
4256 | .proc_name = PMCRAID_DRIVER_NAME, | 4257 | .proc_name = PMCRAID_DRIVER_NAME, |
4257 | .use_blk_tags = 1, | ||
4258 | }; | 4258 | }; |
4259 | 4259 | ||
4260 | /* | 4260 | /* |
@@ -5563,11 +5563,9 @@ static void pmcraid_set_timestamp(struct pmcraid_cmd *cmd) | |||
5563 | __be32 time_stamp_len = cpu_to_be32(PMCRAID_TIMESTAMP_LEN); | 5563 | __be32 time_stamp_len = cpu_to_be32(PMCRAID_TIMESTAMP_LEN); |
5564 | struct pmcraid_ioadl_desc *ioadl = ioarcb->add_data.u.ioadl; | 5564 | struct pmcraid_ioadl_desc *ioadl = ioarcb->add_data.u.ioadl; |
5565 | 5565 | ||
5566 | struct timeval tv; | ||
5567 | __le64 timestamp; | 5566 | __le64 timestamp; |
5568 | 5567 | ||
5569 | do_gettimeofday(&tv); | 5568 | timestamp = ktime_get_real_seconds() * 1000; |
5570 | timestamp = tv.tv_sec * 1000; | ||
5571 | 5569 | ||
5572 | pinstance->timestamp_data->timestamp[0] = (__u8)(timestamp); | 5570 | pinstance->timestamp_data->timestamp[0] = (__u8)(timestamp); |
5573 | pinstance->timestamp_data->timestamp[1] = (__u8)((timestamp) >> 8); | 5571 | pinstance->timestamp_data->timestamp[1] = (__u8)((timestamp) >> 8); |