Skip to content

Commit

Permalink
scsi: hisi_sas: Add time interval between two H2D FIS following soft …
Browse files Browse the repository at this point in the history
…reset spec

Spec says at least 5us between two H2D FIS when do soft reset, but be
generous and sleep for about 1ms.

Signed-off-by: Xingui Yang <yangxingui@huawei.com>
Link: https://lore.kernel.org/r/20241008021822.2617339-11-liyihang9@huawei.com
Reviewed-by: Yihang Li <liyihang9@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
  • Loading branch information
Xingui Yang authored and martinkpetersen committed Oct 16, 2024
1 parent 90b2485 commit 3c62791
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/scsi/hisi_sas/hisi_sas_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1321,6 +1321,7 @@ static int hisi_sas_softreset_ata_disk(struct domain_device *device)
}

if (rc == TMF_RESP_FUNC_COMPLETE) {
usleep_range(900, 1000);
ata_for_each_link(link, ap, EDGE) {
int pmp = sata_srst_pmp(link);

Expand Down

0 comments on commit 3c62791

Please sign in to comment.