aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mpt2sas/mpt2sas_scsih.c
diff options
context:
space:
mode:
authorSreekanth Reddy <Sreekanth.Reddy@lsi.com>2013-02-01 14:28:20 -0500
committerJames Bottomley <JBottomley@Parallels.com>2013-06-24 15:49:56 -0400
commit48ba2efc382f94fae16ca8ca011e5961a81ad1ea (patch)
treea4b7efe80a10d0d322aad21ce5665dcdc823b5d8 /drivers/scsi/mpt2sas/mpt2sas_scsih.c
parent6241f22ca12a26ee149cbe31b27bac97dbdc8bc4 (diff)
[SCSI] mpt2sas: fix firmware failure with wrong task attribute
When SCSI command is received with task attribute not set, set it to SIMPLE. Previously it is set to untagged. This causes the firmware to fail the commands. Signed-off-by: Sreekanth Reddy <Sreekanth.Reddy@lsi.com> Cc: stable@vger.kernel.org Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpt2sas_scsih.c')
-rw-r--r--drivers/scsi/mpt2sas/mpt2sas_scsih.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/scsi/mpt2sas/mpt2sas_scsih.c b/drivers/scsi/mpt2sas/mpt2sas_scsih.c
index 01dfbabc1c17..c78216c83bf8 100644
--- a/drivers/scsi/mpt2sas/mpt2sas_scsih.c
+++ b/drivers/scsi/mpt2sas/mpt2sas_scsih.c
@@ -3998,11 +3998,7 @@ _scsih_qcmd_lck(struct scsi_cmnd *scmd, void (*done)(struct scsi_cmnd *))
3998 else 3998 else
3999 mpi_control |= MPI2_SCSIIO_CONTROL_SIMPLEQ; 3999 mpi_control |= MPI2_SCSIIO_CONTROL_SIMPLEQ;
4000 } else 4000 } else
4001/* MPI Revision I (UNIT = 0xA) - removed MPI2_SCSIIO_CONTROL_UNTAGGED */ 4001 mpi_control |= MPI2_SCSIIO_CONTROL_SIMPLEQ;
4002/* mpi_control |= MPI2_SCSIIO_CONTROL_UNTAGGED;
4003 */
4004 mpi_control |= (0x500);
4005
4006 } else 4002 } else
4007 mpi_control |= MPI2_SCSIIO_CONTROL_SIMPLEQ; 4003 mpi_control |= MPI2_SCSIIO_CONTROL_SIMPLEQ;
4008 /* Make sure Device is not raid volume. 4004 /* Make sure Device is not raid volume.