]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: hisi_sas: Add softreset in hisi_sas_I_T_nexus_reset()
authorLuo Jiaxing <luojiaxing@huawei.com>
Wed, 20 Mar 2019 10:21:34 +0000 (18:21 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 20 Mar 2019 18:24:04 +0000 (14:24 -0400)
commit3fc346a228451b2d34a0aed086c79ffd668d2cec
tree56c9647c1a068750f4efbd5eb8af0498ad34cfed
parent571919366a7957a6336fcdec33a08febcd222634
scsi: hisi_sas: Add softreset in hisi_sas_I_T_nexus_reset()

We found out that for v2 hw, a SATA disk can not be written to after the
system comes up.

In commit 5dd983280820 ("scsi: hisi_sas: remove the check of sas_dev status
in hisi_sas_I_T_nexus_reset()"), we introduced a path where we may issue an
internal abort for a SATA device, but without following it with a
softreset.

We need to always follow an internal abort with a software reset, as per HW
programming flow, so add this.

Fixes: 5dd983280820 ("scsi: hisi_sas: remove the check of sas_dev status in hisi_sas_I_T_nexus_reset()")
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