Skip to content
Commit 8a182164 authored by Xiang Chen's avatar Xiang Chen Committed by Greg Kroah-Hartman
Browse files

scsi: hisi_sas: Modify the deadline for ata_wait_after_reset()



[ Upstream commit 0098c55e ]

We found that the second parameter of function ata_wait_after_reset() is
incorrectly used. We call smp_ata_check_ready_type() to poll the device
type until the 30s timeout, so the correct deadline should be (jiffies +
30000).

Fixes: 3c2673a0 ("scsi: hisi_sas: Fix SATA devices missing issue during I_T nexus reset")
Co-developed-by: default avatarxiabing <xiabing12@h-partners.com>
Signed-off-by: default avatarxiabing <xiabing12@h-partners.com>
Co-developed-by: default avatarYihang Li <liyihang9@huawei.com>
Signed-off-by: default avatarYihang Li <liyihang9@huawei.com>
Signed-off-by: default avatarXiang Chen <chenxiang66@hisilicon.com>
Link: https://lore.kernel.org/r/20240402035513.2024241-3-chenxiang66@hisilicon.com


Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent aebbe59b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment