scsi: hisi_sas: Put a limit of link reset retries
authorLuo Jiaxing <luojiaxing@huawei.com>
Mon, 7 Jun 2021 09:29:35 +0000 (17:29 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 10 Jun 2021 03:21:51 +0000 (23:21 -0400)
commit366da0da1f5fe4e7e702f5864a557e57f485431f
treee429b4c52b49926738565ec25779f656e9d2e7a8
parentd1f2ce77638d681c1e34d597e432a3b28ce15c78
scsi: hisi_sas: Put a limit of link reset retries

If an OOB event is received but the phy still fails to come up, a link
reset will be issued repeatedly at an interval of 20s until the phy comes
up.

Set a limit for link reset issue retries to avoid printing the timeout
message endlessly.

Link: https://lore.kernel.org/r/1623058179-80434-2-git-send-email-john.garry@huawei.com
Signed-off-by: Luo Jiaxing <luojiaxing@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas.h
drivers/scsi/hisi_sas/hisi_sas_main.c