scsi: hisi_sas: Reset disks when discovered
authorXiang Chen <chenxiang66@hisilicon.com>
Mon, 21 May 2018 10:09:17 +0000 (18:09 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 29 May 2018 02:40:32 +0000 (22:40 -0400)
commitd5a60dfdb364bd1fa59c2c11be54be80f6990a3d
tree0011a7119f7384f3df8e167cf8abaf0eaa01f503
parent428f1b3424f4fe750943d8cdd1b0dafad99b0b75
scsi: hisi_sas: Reset disks when discovered

When a disk is discovered, it may be in an error state, or there may be
residual commands remaining in the disk.

To ensure any disk is in good state after discovery, reset via TMF (for SAS
disk) or softreset (for a SATA disk).

Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: Xiaofei Tan <tanxiaofei@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