From: John Garry <john.garry@huawei.com>
To: <jejb@linux.vnet.ibm.com>, <martin.petersen@oracle.com>
Cc: <linuxarm@huawei.com>, <linux-kernel@vger.kernel.org>,
<linux-scsi@vger.kernel.org>, <dgilbert@interlog.com>,
John Garry <john.garry@huawei.com>
Subject: [PATCH] scsi: hisi_sas: Use scsi lld debugfs folder
Date: Wed, 9 Jan 2019 20:43:34 +0800 [thread overview]
Message-ID: <1547037814-99911-1-git-send-email-john.garry@huawei.com> (raw)
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
reply other threads:[~2019-01-09 12:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1547037814-99911-1-git-send-email-john.garry@huawei.com \
--to=john.garry@huawei.com \
--cc=dgilbert@interlog.com \
--cc=jejb@linux.vnet.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=linuxarm@huawei.com \
--cc=martin.petersen@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®