From: Harish Jenny K N <harish_kandiga@mentor.com>
To: <ulf.hansson@linaro.org>, <linus.walleij@linaro.org>,
<adrian.hunter@intel.com>, <shawn.lin@rock-chips.com>,
<avri.altman@wdc.com>, <andriy.shevchenko@linux.intel.com>
Cc: <linux-mmc@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<harish_kandiga@mentor.com>
Subject: [PATCH] mmc: Export host capabilities to debugfs.
Date: Thu, 1 Mar 2018 18:47:35 +0530 [thread overview]
Message-ID: <1519910255-6296-1-git-send-email-harish_kandiga@mentor.com> (raw)
This patch exports the host capabilities to debugfs
Signed-off-by: Andrew Gabbasov <andrew_gabbasov@mentor.com>
Signed-off-by: Harish Jenny K N <harish_kandiga@mentor.com>
---
drivers/mmc/core/debugfs.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/mmc/core/debugfs.c b/drivers/mmc/core/debugfs.c
index c51e0c0..fa2df7f 100644
--- a/drivers/mmc/core/debugfs.c
+++ b/drivers/mmc/core/debugfs.c
@@ -289,6 +289,9 @@ void mmc_add_card_debugfs(struct mmc_card *card)
card->debugfs_root = root;
+ if (!debugfs_create_x32("host_caps", S_IRUSR, root, (u32 *)&host->caps))
+ goto err;
+
if (!debugfs_create_x32("state", S_IRUSR, root, &card->state))
goto err;
--
1.9.1
next reply other threads:[~2018-03-01 13:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-01 13:17 Harish Jenny K N [this message]
2018-03-01 14:24 ` Linus Walleij
2018-03-02 13:17 ` Harish Jenny K N
2018-03-02 13:24 ` Linus Walleij
2018-03-03 16:32 ` Vladimir Zapolskiy
2018-03-05 4:07 ` Harish Jenny K N
2018-03-05 13:38 Harish Jenny K N
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=1519910255-6296-1-git-send-email-harish_kandiga@mentor.com \
--to=harish_kandiga@mentor.com \
--cc=adrian.hunter@intel.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=avri.altman@wdc.com \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=shawn.lin@rock-chips.com \
--cc=ulf.hansson@linaro.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
all inboxes | Powered by JetHome®