Loading
[Backport]scsi: hisi_sas: Reset PHY again if phyup timeout
mainline inclusion from mainline-v6.12-rc1 commit 64359afb7068e9fd1b3ffcf7b0fefb63d1a2ccdf category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IBCN9K CVE: NA Reference: https://lore.kernel.org/r/20241008021822.2617339-6-liyihang9@huawei.com ------------------------------------------------------------------ In commit 89954f02 ("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> Signed-off-by:
Slim6882 <yangjunshuo@huawei.com>