]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: hisi_sas: Wait until error handling is complete
authorYihang Li <liyihang9@huawei.com>
Mon, 14 Apr 2025 08:08:45 +0000 (16:08 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 22 Apr 2025 01:44:24 +0000 (21:44 -0400)
commit1ca57644e2e935b39a260ead5e0ec5ac0319148e
tree1e331beb3e55131bfa4a0e47b81bac38f4831603
parente4d953ca557e02edd3aed7390043e1b8ad1c9723
scsi: hisi_sas: Wait until error handling is complete

SATA devices are lost when FLR is performed while the controller and disks
are in suspended state.

This is because the libata layer is called to initialize the SATA device
during controller resume. If FLR is executed at this time, the IDENTIFY
command fails. As a result, the revalidate fails, and the SATA device is
disabled by the libata layer.

Wait until error handling completes.

Signed-off-by: Yihang Li <liyihang9@huawei.com>
Link: https://lore.kernel.org/r/20250414080845.1220997-5-liyihang9@huawei.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c