summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorYihang Li <liyihang9@huawei.com>2024-10-08 10:18:13 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-05 14:02:03 +0100
commit4affee82b9935285023e4b8a7927697facaa0f95 (patch)
tree8432da7c5f6275384afb9b70b2ac62ba18b37a17 /tools
parentbd89d94f3ea6fdaee983cbc69226a00b9bde6d59 (diff)
downloadlinux-4affee82b9935285023e4b8a7927697facaa0f95.tar.gz
linux-4affee82b9935285023e4b8a7927697facaa0f95.tar.bz2
linux-4affee82b9935285023e4b8a7927697facaa0f95.zip
scsi: hisi_sas: Enable all PHYs that are not disabled by user during controller reset
[ Upstream commit 08a07dc71d7fc6f58c35c4fc0bcede2811c5aa4c ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions