]> git.baikalelectronics.ru Git - kernel.git/commit
hisi_sas: change tmf func complete check
authorJohn Garry <john.garry@huawei.com>
Thu, 25 Feb 2016 09:42:10 +0000 (17:42 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 1 Mar 2016 02:00:03 +0000 (21:00 -0500)
commit1f17d46c12baa6c3433a905225fe4a08b03e9b31
treee832e25935b704b3337d56c1100b211a14e9bed7
parenta44b18b5c46f562ca2c828ea0f3d3626d7a7f88c
hisi_sas: change tmf func complete check

In hisi_sas_exec_internal_tmf_task(), the check for
SAM_STAT_GOOD is replaced with
TMF_RESP_FUNC_COMPLETE, which is a genuine tmf
response code.
SAM_STAT_GOOD and TMF_RESP_FUNC_COMPLETE have the
same value, so this is why it worked before.

Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_main.c