Message ID | 1553077294-129863-1-git-send-email-john.garry@huawei.com |
---|---|
State | New |
Headers | show |
Series | scsi: hisi_sas: Add softreset in hisi_sas_I_T_nexus_reset() | expand |
On 20/03/2019 18:25, Martin K. Petersen wrote: > > John, > >> We need to always follow an internal abort with a software reset, as >> per HW programming flow, so add this. > > Mangled patch. Applied it by hand to 5.1/scsi-fixes but please use git > send-email. > Hi Martin, I'm not sure what happened. Patch https://patchwork.kernel.org/patch/10861283/mbox/ applied ok for me, and I did use git send-email. Thanks, John
diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c index 3c3cf89f713f..14bac4966c87 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_main.c +++ b/drivers/scsi/hisi_sas/hisi_sas_main.c @@ -1801,6 +1801,12 @@ static int hisi_sas_I_T_nexus_reset(struct domain_device *device) } hisi_sas_dereg_device(hisi_hba, device); + if (dev_is_sata(device)) { + rc = hisi_sas_softreset_ata_disk(device); + if (rc) + return TMF_RESP_FUNC_FAILED; + } + rc = hisi_sas_debug_I_T_nexus_reset(device); if ((rc == TMF_RESP_FUNC_COMPLETE) || (rc == -ENODEV))