scsi: hisi_sas: Create root and device debugfs directories
authorLuo Jiaxing <luojiaxing@huawei.com>
Wed, 19 Dec 2018 15:56:39 +0000 (23:56 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 9 Jan 2019 02:58:37 +0000 (21:58 -0500)
commitef63464bcf8feaa793e1aee4d3d186dfd1fff05f
tree25a8cf81ed2b3a26451dc5d7ed60eac97c2602b0
parentad796f790cc2db13d3899107b19aae4b439a2f9b
scsi: hisi_sas: Create root and device debugfs directories

This patch creates root directory at hisi_sas_init() and generates device
directory when we probe device driver.

And we remove the root directory at hisi_sas_exit(), but recursively
delete device directory when we remove device driver.

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