]> Git Repo - linux.git/commitdiff
scsi: hisi_sas: Modify the deadline for ata_wait_after_reset()
authorXiang Chen <[email protected]>
Tue, 2 Apr 2024 03:55:13 +0000 (11:55 +0800)
committerMartin K. Petersen <[email protected]>
Sat, 6 Apr 2024 01:47:38 +0000 (21:47 -0400)
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: 3c2673a09cf1 ("scsi: hisi_sas: Fix SATA devices missing issue during I_T nexus reset")
Co-developed-by: xiabing <[email protected]>
Signed-off-by: xiabing <[email protected]>
Co-developed-by: Yihang Li <[email protected]>
Signed-off-by: Yihang Li <[email protected]>
Signed-off-by: Xiang Chen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Martin K. Petersen <[email protected]>
drivers/scsi/hisi_sas/hisi_sas_main.c

index 097dfe4b620dce85736b8a0d5cf7f4b3c4842e9b..35f8e00850d6cb3e45063c2229c4f7532a9eae40 100644 (file)
@@ -1797,7 +1797,7 @@ static int hisi_sas_debug_I_T_nexus_reset(struct domain_device *device)
        if (dev_is_sata(device)) {
                struct ata_link *link = &device->sata_dev.ap->link;
 
-               rc = ata_wait_after_reset(link, HISI_SAS_WAIT_PHYUP_TIMEOUT,
+               rc = ata_wait_after_reset(link, jiffies + HISI_SAS_WAIT_PHYUP_TIMEOUT,
                                          smp_ata_check_ready_type);
        } else {
                msleep(2000);
This page took 0.087103 seconds and 4 git commands to generate.