| From 48ba2efc382f94fae16ca8ca011e5961a81ad1ea Mon Sep 17 00:00:00 2001 |
| From: Sreekanth Reddy <Sreekanth.Reddy@lsi.com> |
| Date: Sat, 2 Feb 2013 00:58:20 +0530 |
| Subject: SCSI: mpt2sas: fix firmware failure with wrong task attribute |
| |
| From: Sreekanth Reddy <Sreekanth.Reddy@lsi.com> |
| |
| commit 48ba2efc382f94fae16ca8ca011e5961a81ad1ea upstream. |
| |
| 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> |
| Signed-off-by: James Bottomley <JBottomley@Parallels.com> |
| Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| |
| --- |
| drivers/scsi/mpt2sas/mpt2sas_scsih.c | 6 +----- |
| 1 file changed, 1 insertion(+), 5 deletions(-) |
| |
| --- a/drivers/scsi/mpt2sas/mpt2sas_scsih.c |
| +++ b/drivers/scsi/mpt2sas/mpt2sas_scsih.c |
| @@ -3963,11 +3963,7 @@ _scsih_qcmd_lck(struct scsi_cmnd *scmd, |
| else |
| mpi_control |= MPI2_SCSIIO_CONTROL_SIMPLEQ; |
| } else |
| -/* MPI Revision I (UNIT = 0xA) - removed MPI2_SCSIIO_CONTROL_UNTAGGED */ |
| -/* mpi_control |= MPI2_SCSIIO_CONTROL_UNTAGGED; |
| - */ |
| - mpi_control |= (0x500); |
| - |
| + mpi_control |= MPI2_SCSIIO_CONTROL_SIMPLEQ; |
| } else |
| mpi_control |= MPI2_SCSIIO_CONTROL_SIMPLEQ; |
| /* Make sure Device is not raid volume. |