From: Hannes Reinecke Date: Fri, 30 Jun 2017 17:18:10 +0000 (+0200) Subject: scsi: aacraid: enable sending of TMFs from aac_hba_send() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b60710ec7d7ab1ca277b458338563ac21b393906;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Reviewed-by: Raghava Aditya Renukunta Signed-off-by: Martin K. Petersen --- 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;