From: Loc Ho <lho-qTEPVZfXA3Y@public.gmane.org>
To: dougthompson-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org,
bp-Gina5bIWoIWzQB+pC5nmwQ@public.gmane.org,
mchehab-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org,
arnd-r2nGTMty4D4@public.gmane.org
Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
mark.rutland-5wv7dgnIgG8@public.gmane.org,
ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org,
linux-edac-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
jcm-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
patches-qTEPVZfXA3Y@public.gmane.org,
Loc Ho <lho-qTEPVZfXA3Y@public.gmane.org>
Subject: [PATCH v3 1/4] edac: Add an function to retrieve the EDAC debugfs node
Date: Tue, 11 Aug 2015 14:47:54 -0600 [thread overview]
Message-ID: <1439326077-25507-2-git-send-email-lho@apm.com> (raw)
In-Reply-To: <1439326077-25507-1-git-send-email-lho-qTEPVZfXA3Y@public.gmane.org>
This patch adds an function to retrieve the EDAC debugfs node. This allows
EDAC driver to create debugfs node under the EDAC debugfs node.
Signed-off-by: Loc Ho <lho-qTEPVZfXA3Y@public.gmane.org>
---
drivers/edac/edac_core.h | 1 +
drivers/edac/edac_mc_sysfs.c | 10 ++++++++++
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/drivers/edac/edac_core.h b/drivers/edac/edac_core.h
index ad42587..6771e64 100644
--- a/drivers/edac/edac_core.h
+++ b/drivers/edac/edac_core.h
@@ -511,5 +511,6 @@ extern void edac_pci_remove_sysfs(struct edac_pci_ctl_info *pci);
* edac misc APIs
*/
extern char *edac_op_state_to_string(int op_state);
+extern struct dentry *edac_get_debugfs(void);
#endif /* _EDAC_CORE_H_ */
diff --git a/drivers/edac/edac_mc_sysfs.c b/drivers/edac/edac_mc_sysfs.c
index 33df7d9..b76afe0 100644
--- a/drivers/edac/edac_mc_sysfs.c
+++ b/drivers/edac/edac_mc_sysfs.c
@@ -959,6 +959,16 @@ nomem:
debugfs_remove(mci->debugfs);
return -ENOMEM;
}
+
+struct dentry *edac_get_debugfs(void)
+{
+ return edac_debugfs;
+}
+#else
+struct dentry *edac_get_debugfs(void)
+{
+ return NULL;
+}
#endif
/*
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-08-11 20:47 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-11 20:47 [PATCH v3 0/4] edac: Add L3/SoC support to the APM X-Gene SoC EDAC driver Loc Ho
[not found] ` <1439326077-25507-1-git-send-email-lho-qTEPVZfXA3Y@public.gmane.org>
2015-08-11 20:47 ` Loc Ho [this message]
[not found] ` <1439326077-25507-2-git-send-email-lho-qTEPVZfXA3Y@public.gmane.org>
2015-08-11 20:47 ` [PATCH v3 2/4] Documentation: Update the APM X-Gene SoC EDAC DTS binding for L3/SoC subnodes Loc Ho
[not found] ` <1439326077-25507-3-git-send-email-lho-qTEPVZfXA3Y@public.gmane.org>
2015-08-11 20:47 ` [PATCH v3 3/4] edac: Add L3/SoC EDAC support to the APM X-Gene SoC EDAC driver Loc Ho
[not found] ` <1439326077-25507-4-git-send-email-lho-qTEPVZfXA3Y@public.gmane.org>
2015-08-11 20:47 ` [PATCH v3 4/4] arm64: Add L3/SoC DT subnodes to the APM X-Gene SoC EDAC node Loc Ho
2015-08-12 10:51 ` [PATCH v3 3/4] edac: Add L3/SoC EDAC support to the APM X-Gene SoC EDAC driver Borislav Petkov
[not found] ` <20150812105121.GE14011-K5JNixvcfoxupOikMc4+xw@public.gmane.org>
2015-08-12 17:50 ` Loc Ho
[not found] ` <CAPw-ZTkRytHUsUsDmTkfzzTYbcZnmTVRMkzNzg_9ZpdQH76rZw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-08-13 3:36 ` Borislav Petkov
[not found] ` <20150813033640.GB14432-K5JNixvcfoxupOikMc4+xw@public.gmane.org>
2015-08-13 4:13 ` Loc Ho
2015-08-12 10:12 ` [PATCH v3 1/4] edac: Add an function to retrieve the EDAC debugfs node Borislav Petkov
[not found] ` <20150812101219.GC14011-K5JNixvcfoxupOikMc4+xw@public.gmane.org>
2015-08-12 10:49 ` Borislav Petkov
[not found] ` <20150812104954.GD14011-K5JNixvcfoxupOikMc4+xw@public.gmane.org>
2015-08-12 17:23 ` Loc Ho
2015-08-13 3:38 ` Borislav Petkov
2015-08-13 4:30 ` Loc Ho
[not found] ` <CAPw-ZTkfAxqG6HQHU3WomrqRwXa+jyTWCg=ns1HKC323ds1yug-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-08-13 8:15 ` Borislav Petkov
[not found] ` <20150813081537.GB20004-K5JNixvcfoxupOikMc4+xw@public.gmane.org>
2015-08-13 8:41 ` Lothar Waßmann
[not found] ` <20150813104150.2c084a8c-VjFSrY7JcPWvSplVBqRQBQ@public.gmane.org>
2015-08-13 8:52 ` Borislav Petkov
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=1439326077-25507-2-git-send-email-lho@apm.com \
--to=lho-qtepvzfxa3y@public.gmane.org \
--cc=arnd-r2nGTMty4D4@public.gmane.org \
--cc=bp-Gina5bIWoIWzQB+pC5nmwQ@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=dougthompson-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org \
--cc=ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org \
--cc=jcm-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-edac-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
--cc=mchehab-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org \
--cc=patches-qTEPVZfXA3Y@public.gmane.org \
--cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
/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;
as well as URLs for NNTP newsgroup(s).