!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:
commit
e5646556fd
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue