!218 [next-5.4]scsi: hisi_sas: Modify the deadline for ata_wait_after_reset()

Merge pull request !218 from chenyi/linux-5.4/cy
This commit is contained in:
Huang Cun 2024-08-28 02:25:38 +00:00 committed by Gitee
commit e5646556fd
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 3 additions and 1 deletions

View File

@ -1915,8 +1915,10 @@ 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;
unsigned long deadline = ata_deadline(jiffies,
HISI_SAS_WAIT_PHYUP_TIMEOUT / HZ * 1000);
rc = ata_wait_after_reset(link, HISI_SAS_WAIT_PHYUP_TIMEOUT,
rc = ata_wait_after_reset(link, deadline,
smp_ata_check_ready_type);
} else {
msleep(2000);