]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: hisi_sas: Reset PHY again if phyup timeout
authorYihang Li <liyihang9@huawei.com>
Tue, 8 Oct 2024 02:18:14 +0000 (10:18 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 16 Oct 2024 02:33:34 +0000 (22:33 -0400)
commit64359afb7068e9fd1b3ffcf7b0fefb63d1a2ccdf
treed60e7395ca4a824dde31202cfd1b94ff1d88fe83
parent08a07dc71d7fc6f58c35c4fc0bcede2811c5aa4c
scsi: hisi_sas: Reset PHY again if phyup timeout

In commit 89954f024c3a ("scsi: hisi_sas: Ensure all enabled PHYs up
during controller reset"), we enable PHYs in parallel through async
operations and wait for PHYs come up. However, for some directly
attached SATA disks, the PHY not come up after a timeout period and the
hardware is not ready.  At this time, we should get the latest PHY
hardware state, if the new PHY state is not ready but the old PHY state
is ready, call work HISI_PHYE_LINK_RESET to give it another chance to
phyup.

Signed-off-by: Yihang Li <liyihang9@huawei.com>
Link: https://lore.kernel.org/r/20241008021822.2617339-6-liyihang9@huawei.com
Reviewed-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_main.c