summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aacraid
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2017-06-30 19:18:10 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2017-08-07 14:04:00 -0400
commitb60710ec7d7ab1ca277b458338563ac21b393906 (patch)
tree34742e3513b2870d53f43354fbbe49da8faa16d9 /drivers/scsi/aacraid
parent0d643ff3c35351a42d3f6b1e047302afdaa02d55 (diff)
downloadblackbird-op-linux-b60710ec7d7ab1ca277b458338563ac21b393906.tar.gz
blackbird-op-linux-b60710ec7d7ab1ca277b458338563ac21b393906.zip
scsi: aacraid: enable sending of TMFs from aac_hba_send()
aac_hba_send() will return FAILED for any non-SCSI command requests, failing any TMFs. This patch updates the check to allow TMFs. Signed-off-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Raghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/aacraid')
-rw-r--r--drivers/scsi/aacraid/commsup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/aacraid/commsup.c b/drivers/scsi/aacraid/commsup.c
index 1c617ccfaf12..348f0ea105ee 100644
--- a/drivers/scsi/aacraid/commsup.c
+++ b/drivers/scsi/aacraid/commsup.c
@@ -770,7 +770,7 @@ int aac_hba_send(u8 command, struct fib *fibptr, fib_callback callback,
/* bit1 of request_id must be 0 */
hbacmd->request_id =
cpu_to_le32((((u32)(fibptr - dev->fibs)) << 2) + 1);
- } else
+ } else if (command != HBA_IU_TYPE_SCSI_TM_REQ)
return -EINVAL;
OpenPOWER on IntegriCloud