]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: hisi_sas: Fixed failure to issue vendor specific commands
authorXingui Yang <yangxingui@huawei.com>
Thu, 20 Feb 2025 09:00:11 +0000 (17:00 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 18 Mar 2025 02:04:21 +0000 (22:04 -0400)
commit750d4fbe2c20e65d764c70afe2c9e6cfa874b044
treecafb1e12cfeb8e880fe729b307ef90ea1f833f72
parentbd067766ee2aeb35589ad74d599b0e6311f68c73
scsi: hisi_sas: Fixed failure to issue vendor specific commands

At present, we determine the protocol through the cmd type, but other cmd
types, such as vendor-specific commands, default to the PIO protocol.  This
strategy often causes the execution of different vendor-specific commands
to fail. In fact, for these commands, a better way is to use the protocol
configured by the command's tf to determine its protocol.

Fixes: 6f2ff1a1311e ("hisi_sas: add v2 path to send ATA command")
Signed-off-by: Xingui Yang <yangxingui@huawei.com>
Link: https://lore.kernel.org/r/20250220090011.313848-1-liyihang9@huawei.com
Reviewed-by: Yihang Li <liyihang9@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas.h
drivers/scsi/hisi_sas/hisi_sas_main.c
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c