]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: hisi_sas: add controller reset
authorXiang Chen <chenxiang66@hisilicon.com>
Wed, 22 Mar 2017 17:25:18 +0000 (01:25 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 23 Mar 2017 15:12:01 +0000 (11:12 -0400)
commit0749966c3a3d871ee525ed3b16a9cf1479734b7b
treec28bb8ca5a68622bb4a8e78348f2ec78eaa10c2c
parentae2bdec0dd8729424d8198fe45eb7f05b68c3aba
scsi: hisi_sas: add controller reset

There are some scenarios that we need to warm-reset to reset registers
of SAS controller. During reset we disable interrupts/DQs/PHYs, and
after reset we re-init the hardware and rescan the topology to see if
anything changed.

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.h
drivers/scsi/hisi_sas/hisi_sas_main.c
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c