Yihang Li 08a07dc71d scsi: hisi_sas: Enable all PHYs that are not disabled by user during controller reset
For the controller reset operation(such as FLR or clear nexus ha in SCSI
EH), we will disable all PHYs and then enable PHY based on the
hisi_hba->phy_state obtained in hisi_sas_controller_reset_prepare(). If
the device is removed before controller reset or the PHY is not attached
to any device in directly attached scenario, the corresponding bit of
phy_state is not set. After controller reset done, the PHY is disabled.
The device cannot be identified even if user reconnect the disk.

Therefore, for PHYs that are not disabled by user, hisi_sas_phy_enable()
needs to be executed even if the corresponding bit of phy_state is not
set.

Fixes: 89954f024c3a ("scsi: hisi_sas: Ensure all enabled PHYs up during controller reset")
Signed-off-by: Yihang Li <liyihang9@huawei.com>
Link: https://lore.kernel.org/r/20241008021822.2617339-5-liyihang9@huawei.com
Reviewed-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2024-10-15 22:33:34 -04:00
..
2024-09-19 11:28:51 +02:00
2024-05-18 12:39:20 -07:00
2024-09-19 11:28:51 +02:00
2024-09-19 11:28:51 +02:00
2024-09-29 09:22:34 -07:00
2024-09-29 09:22:34 -07:00
2024-09-29 09:22:34 -07:00
2024-05-22 12:13:40 -07:00
2024-03-10 18:15:48 -04:00
2024-05-21 10:09:28 -07:00
2024-05-21 10:09:28 -07:00
2024-03-15 17:53:48 -07:00
2024-08-12 22:05:50 -04:00
2024-08-12 22:05:50 -04:00
2024-09-29 09:22:34 -07:00
2024-09-25 14:56:40 -07:00
2024-03-16 16:31:12 -07:00
2024-06-20 15:19:17 -06:00
2024-06-11 21:14:54 -04:00
2024-09-29 09:22:34 -07:00
2024-06-20 15:19:17 -06:00
2024-09-27 08:18:43 -07:00