diff options
author | John Garry <john.garry@huawei.com> | 2022-02-17 16:42:37 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-02-19 21:59:35 +0100 |
commit | 001ec7f89bea94259ededbedc8b5627b93848b8a (patch) | |
tree | 99de8d88f0883823ab7ea3d108a9cecb09c1dec6 /CREDITS | |
parent | scsi: libsas: Add sas_task.tmf (diff) | |
download | linux-001ec7f89bea94259ededbedc8b5627b93848b8a.tar.xz linux-001ec7f89bea94259ededbedc8b5627b93848b8a.zip |
scsi: libsas: Add sas_execute_tmf()
Drivers using libsas have to issue their own TMFs, and the code to do this
is duplicated between drivers.
Add a common function to handle TMFs. This will be also used for sending
ATA commands, but use name "tmf" as the purpose is similar between SCSI and
ATA in the usage.
The force_phy_id argument will be used for a hisi_sas HW bug workaround.
We check the sas task status stat field against TMF codes, as according to
the SAS v1.1 spec 9.2.2.5.3, if response_data is in datapres, then the
response code should be a TMF code - see table 128.
Link: https://lore.kernel.org/r/1645112566-115804-10-git-send-email-john.garry@huawei.com
Tested-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions