]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: hisi_sas: Do not reset phy timer to wait for stray phy up
authorLuo Jiaxing <luojiaxing@huawei.com>
Fri, 15 May 2020 14:13:42 +0000 (22:13 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 20 May 2020 01:23:57 +0000 (21:23 -0400)
commit68ccd7741fc6a94fc7468c63760313e0ece04937
treee359e08158aa4b03888c7b7359d91fc8a500a797
parentcb6ef5a5e2a6f881279dfe4c6d526c4ef1b0dc8a
scsi: hisi_sas: Do not reset phy timer to wait for stray phy up

We found out that after phy up, the hardware reports another oob interrupt
but did not follow a phy up interrupt:

oob ready -> phy up -> DEV found -> oob read -> wait phy up -> timeout

We run link reset when wait phy up timeout, and it send a normal disk into
reset processing. So we made some circumvention action in the code, so that
this abnormal oob interrupt will not start the timer to wait for phy up.

Link: https://lore.kernel.org/r/1589552025-165012-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_main.c