Commit 661c3f6c authored by Andrew Vasquez's avatar Andrew Vasquez Committed by James Bottomley

[SCSI] qla2xxx: Use midlayer's int_to_scsilun() function.

While populating command type 6 and 7 IOCBs.
Signed-off-by: default avatarAndrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 4fdfefe5
...@@ -394,7 +394,7 @@ struct cmd_type_6 { ...@@ -394,7 +394,7 @@ struct cmd_type_6 {
uint16_t fcp_rsp_dsd_len; /* FCP_RSP DSD length. */ uint16_t fcp_rsp_dsd_len; /* FCP_RSP DSD length. */
uint8_t lun[8]; /* FCP LUN (BE). */ struct scsi_lun lun; /* FCP LUN (BE). */
uint16_t control_flags; /* Control flags. */ uint16_t control_flags; /* Control flags. */
#define CF_DATA_SEG_DESCR_ENABLE BIT_2 #define CF_DATA_SEG_DESCR_ENABLE BIT_2
...@@ -432,7 +432,7 @@ struct cmd_type_7 { ...@@ -432,7 +432,7 @@ struct cmd_type_7 {
uint16_t dseg_count; /* Data segment count. */ uint16_t dseg_count; /* Data segment count. */
uint16_t reserved_1; uint16_t reserved_1;
uint8_t lun[8]; /* FCP LUN (BE). */ struct scsi_lun lun; /* FCP LUN (BE). */
uint16_t task_mgmt_flags; /* Task management flags. */ uint16_t task_mgmt_flags; /* Task management flags. */
#define TMF_CLEAR_ACA BIT_14 #define TMF_CLEAR_ACA BIT_14
......
...@@ -839,8 +839,7 @@ qla24xx_start_scsi(srb_t *sp) ...@@ -839,8 +839,7 @@ qla24xx_start_scsi(srb_t *sp)
cmd_pkt->port_id[1] = sp->fcport->d_id.b.area; cmd_pkt->port_id[1] = sp->fcport->d_id.b.area;
cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain; cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain;
cmd_pkt->lun[1] = LSB(sp->cmd->device->lun); int_to_scsilun(sp->cmd->device->lun, &cmd_pkt->lun);
cmd_pkt->lun[2] = MSB(sp->cmd->device->lun);
/* Update tagged queuing modifier -- default is TSK_SIMPLE (0). */ /* Update tagged queuing modifier -- default is TSK_SIMPLE (0). */
if (scsi_populate_tag_msg(cmd, tag)) { if (scsi_populate_tag_msg(cmd, tag)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment