]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: hisi_sas: Call I_T_nexus after soft reset for SATA disk
authorYihang Li <liyihang9@huawei.com>
Mon, 14 Apr 2025 08:08:44 +0000 (16:08 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 22 Apr 2025 01:44:24 +0000 (21:44 -0400)
commite4d953ca557e02edd3aed7390043e1b8ad1c9723
treea105f7becd4396003e3fc0517bdb1a5964e929c9
parent92c8fe15241587363983d45b63210cc214535146
scsi: hisi_sas: Call I_T_nexus after soft reset for SATA disk

In commit 21c7e972475e ("scsi: hisi_sas: Disable SATA disk phy for severe
I_T nexus reset failure"), if the softreset fails upon certain
conditions, the PHY connected to the disk is disabled directly. Manual
recovery is required, which is inconvenient for users in actual use.

In addition, SATA disks do not support simultaneous connection of multiple
hosts. Therefore, when multiple controllers are connected to a SATA disk
at the same time, the controller which is connected later failed to issue
an ATA softreset to the SATA disk. As a result, the PHY associated with
the disk is disabled and cannot be automatically recovered.

Now that, we will not focus on the execution result of softreset. No
matter whether the execution is successful or not, we will directly carry
out I_T_nexus_reset.

Fixes: 21c7e972475e ("scsi: hisi_sas: Disable SATA disk phy for severe I_T nexus reset failure")
Signed-off-by: Yihang Li <liyihang9@huawei.com>
Link: https://lore.kernel.org/r/20250414080845.1220997-4-liyihang9@huawei.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_main.c