scsi: hisi_sas: Directly snapshot registers when executing a reset
authorJianqin Xie <xiejianqin@hisilicon.com>
Tue, 6 Apr 2021 11:48:29 +0000 (19:48 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Apr 2021 03:21:26 +0000 (23:21 -0400)
commit2c74cb1f9222ebfcc204c02018275ad167d25212
tree48060c7d0ce56cba4078fcd8e1c1af364d149b07
parentf467666504bf0c7eae95b929d0c86f77ff9b4356
scsi: hisi_sas: Directly snapshot registers when executing a reset

The debugfs snapshot should be executed before the reset occurs to ensure
that the register contents are saved properly.

As such, it is incorrect to queue the debugfs dump when running a reset as
the reset will occur prior to the snapshot work item is handler.

Therefore, directly snapshot registers in the reset work handler.

Link: https://lore.kernel.org/r/1617709711-195853-5-git-send-email-john.garry@huawei.com
Signed-off-by: Jianqin Xie <xiejianqin@hisilicon.com>
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>
drivers/scsi/hisi_sas/hisi_sas.h
drivers/scsi/hisi_sas/hisi_sas_main.c
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c