diff options
author | Hannes Reinecke <hare@suse.de> | 2014-01-16 05:25:33 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2014-03-15 13:19:17 -0400 |
commit | fdc5a97cd8bde59b4c94d0b7ef7f11b163e34246 (patch) | |
tree | b53445d71b14f2dc93f6742d0234a7d4bb521781 /drivers/scsi/megaraid/megaraid_sas_fusion.c | |
parent | 3576fab6313ea3c1b588071dd2355d11f704db11 (diff) |
[SCSI] megaraid_sas_fusion: correctly pass queue info pointer
The pointer to the queue info structure is potentially
a 64-bit value, so we should be using the correct macros
to set the values in the init frame.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Acked-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/megaraid/megaraid_sas_fusion.c')
-rw-r--r-- | drivers/scsi/megaraid/megaraid_sas_fusion.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c index f6555921fd7a..9a98bfccc42d 100644 --- a/drivers/scsi/megaraid/megaraid_sas_fusion.c +++ b/drivers/scsi/megaraid/megaraid_sas_fusion.c | |||
@@ -644,7 +644,10 @@ megasas_ioc_init_fusion(struct megasas_instance *instance) | |||
644 | /* Convert capability to LE32 */ | 644 | /* Convert capability to LE32 */ |
645 | cpu_to_le32s((u32 *)&init_frame->driver_operations.mfi_capabilities); | 645 | cpu_to_le32s((u32 *)&init_frame->driver_operations.mfi_capabilities); |
646 | 646 | ||
647 | init_frame->queue_info_new_phys_addr_lo = cpu_to_le32((u32)ioc_init_handle); | 647 | init_frame->queue_info_new_phys_addr_hi = |
648 | cpu_to_le32(upper_32_bits(ioc_init_handle)); | ||
649 | init_frame->queue_info_new_phys_addr_lo = | ||
650 | cpu_to_le32(lower_32_bits(ioc_init_handle)); | ||
648 | init_frame->data_xfer_len = cpu_to_le32(sizeof(struct MPI2_IOC_INIT_REQUEST)); | 651 | init_frame->data_xfer_len = cpu_to_le32(sizeof(struct MPI2_IOC_INIT_REQUEST)); |
649 | 652 | ||
650 | req_desc = | 653 | req_desc = |