scsi: hisi_sas: add reset handler for v3 hw
authorXiang Chen <chenxiang66@hisilicon.com>
Thu, 10 Aug 2017 16:09:40 +0000 (00:09 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Aug 2017 02:28:47 +0000 (22:28 -0400)
commita25d0d3df2a17a245ffa09077d0c4e5fc40088cf
tree876dc01d45b5c750d31bca2e5aa5819f4b445227
parentd499669facfdc9e8a7c479e86fd11f3d49e065ee
scsi: hisi_sas: add reset handler for v3 hw

Use ACPI "_RST" method to reset the controller, since FLR is not
supported.

Function hisi_sas_stop_phys() is introduced to remove some code
duplication.

Signed-off-by: Xiang Chen <chenxiang66@hisilicon.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.h
drivers/scsi/hisi_sas/hisi_sas_main.c
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c