OSDN Git Service

scsi: libsas: Decode SAM status and host byte codes
authorJohn Garry <john.garry@huawei.com>
Wed, 15 Dec 2021 14:37:41 +0000 (22:37 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 17 Dec 2021 03:59:58 +0000 (22:59 -0500)
commit4be6181fea1dbfd21a8d73f69d87a6cae2d3023d
treea16cbd945599e5d02e720883de03c518be27ab1b
parent37310bad7fa645b21653fd7f13cb6b376d80c919
scsi: libsas: Decode SAM status and host byte codes

Value 0 is used for SAM status and libsas exec_status bytes codes in
sas_end_task() - use defined macros instead. In addition, change to proper
enum types.

Also replace SAM_STAT_CHECK_CONDITION with SAS_SAM_STAT_CHECK_CONDITION,
the former being a proper member of enum exec_status.

Link: https://lore.kernel.org/r/1639579061-179473-9-git-send-email-john.garry@huawei.com
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libsas/sas_scsi_host.c