linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] scsi: hisi_sas: Use scsi lld debugfs folder
@ 2019-01-09 12:43 John Garry
  0 siblings, 0 replies; only message in thread
From: John Garry @ 2019-01-09 12:43 UTC (permalink / raw)
  To: jejb, martin.petersen
  Cc: linuxarm, linux-kernel, linux-scsi, dgilbert, John Garry

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.

Signed-off-by: John Garry <john.garry@huawei.com>
---
This patch depends on https://www.spinics.net/lists/linux-scsi/msg126764.html

diff --git a/drivers/scsi/hisi_sas/hisi_sas.h b/drivers/scsi/hisi_sas/hisi_sas.h
index 6a1a5ad..ce527b7 100644
--- a/drivers/scsi/hisi_sas/hisi_sas.h
+++ b/drivers/scsi/hisi_sas/hisi_sas.h
@@ -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
diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c
index 3d24366..e27a06c 100644
--- a/drivers/scsi/hisi_sas/hisi_sas_main.c
+++ b/drivers/scsi/hisi_sas/hisi_sas_main.c
@@ -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;
 }
-- 
1.9.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-01-09 12:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-09 12:43 [PATCH] scsi: hisi_sas: Use scsi lld debugfs folder John Garry

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).