Skip to content

Commit 0e83fc6

Browse files
Luojiaxing1991martinkpetersen
authored andcommitted
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 ffb1c82 ("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: ffb1c82 ("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>
1 parent ac444b4 commit 0e83fc6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/scsi/hisi_sas/hisi_sas_main.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1801,6 +1801,12 @@ static int hisi_sas_I_T_nexus_reset(struct domain_device *device)
18011801
}
18021802
hisi_sas_dereg_device(hisi_hba, device);
18031803

1804+
if (dev_is_sata(device)) {
1805+
rc = hisi_sas_softreset_ata_disk(device);
1806+
if (rc)
1807+
return TMF_RESP_FUNC_FAILED;
1808+
}
1809+
18041810
rc = hisi_sas_debug_I_T_nexus_reset(device);
18051811

18061812
if ((rc == TMF_RESP_FUNC_COMPLETE) || (rc == -ENODEV))

0 commit comments

Comments
 (0)