aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbbas Raza <Abbas_Raza@mentor.com>2018-03-05 08:39:19 -0500
committerUlf Hansson <ulf.hansson@linaro.org>2018-03-22 05:36:27 -0400
commit9c5c685e58bab9a7f985c71b18302953d1c90b27 (patch)
treec42dd8bf230927d3d74f4efa5a30867cec58006b
parentc42e8e054d95890448494f4897837ea32aa69be2 (diff)
mmc: Export host capabilities to debugfs.
This patch exports the host capabilities to debugfs Signed-off-by: Abbas Raza <Abbas_Raza@mentor.com> Signed-off-by: Andrew Gabbasov <andrew_gabbasov@mentor.com> [Harish: Added caps2, moved creation to mmc_add_host_debugfs] Signed-off-by: Harish Jenny K N <harish_kandiga@mentor.com> Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r--drivers/mmc/core/debugfs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mmc/core/debugfs.c b/drivers/mmc/core/debugfs.c
index c51e0c044a3e..d2275c5a2311 100644
--- a/drivers/mmc/core/debugfs.c
+++ b/drivers/mmc/core/debugfs.c
@@ -243,6 +243,12 @@ void mmc_add_host_debugfs(struct mmc_host *host)
243 if (!debugfs_create_file("ios", S_IRUSR, root, host, &mmc_ios_fops)) 243 if (!debugfs_create_file("ios", S_IRUSR, root, host, &mmc_ios_fops))
244 goto err_node; 244 goto err_node;
245 245
246 if (!debugfs_create_x32("caps", S_IRUSR, root, &host->caps))
247 goto err_node;
248
249 if (!debugfs_create_x32("caps2", S_IRUSR, root, &host->caps2))
250 goto err_node;
251
246 if (!debugfs_create_file("clock", S_IRUSR | S_IWUSR, root, host, 252 if (!debugfs_create_file("clock", S_IRUSR | S_IWUSR, root, host,
247 &mmc_clock_fops)) 253 &mmc_clock_fops))
248 goto err_node; 254 goto err_node;