Skip to contentSkip to conversation

scsi: hisi_sas: Use scsi lld debugfs folder

PATCH New John Garry 1 participant 1 message Jan 9, 2019

Subsystems (2)
lore
Share & tools
lore

John Garry

author
#0 lore raw

PATCH 1/1 scsi: hisi_sas: Use scsi lld debugfs folder

Since we now have a dedicated folder for scsi llds in the debugfs tree, relocate the root of the driver debugfs folder to that same location.

---
This patch depends on https://www.spinics.net/lists/linux-scsi/msg126764.html

drivers/scsi/hisi_sas/hisi_sas.h +1 -0
index 6a1a5ad..ce527b7 100644
@@ -26,6 +26,7 @@
 #include <linux/property.h>
 #include <linux/regmap.h>
 #include <scsi/sas_ata.h>
+#include <scsi/scsi_dbg.h>
 #include <scsi/libsas.h>
 
 #define HISI_SAS_MAX_PHYS	9
drivers/scsi/hisi_sas/hisi_sas_main.c +2 -1
index 3d24366..e27a06c 100644
@@ -2985,7 +2985,8 @@ static __init int hisi_sas_init(void)
 		return -ENOMEM;
 
 	if (hisi_sas_debugfs_enable)
-		hisi_sas_debugfs_dir = debugfs_create_dir("hisi_sas", NULL);
+		hisi_sas_debugfs_dir = debugfs_create_dir("hisi_sas",
+							  scsi_debugfs_lld);
 
 	return 0;
 }
Signature · 1 line
1.9.1