mmc: Export host capabilities to debugfs.
authorAbbas Raza <Abbas_Raza@mentor.com>
Mon, 5 Mar 2018 13:39:19 +0000 (19:09 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 22 Mar 2018 09:36:27 +0000 (10:36 +0100)
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>
drivers/mmc/core/debugfs.c

index c51e0c0..d2275c5 100644 (file)
@@ -243,6 +243,12 @@ void mmc_add_host_debugfs(struct mmc_host *host)
        if (!debugfs_create_file("ios", S_IRUSR, root, host, &mmc_ios_fops))
                goto err_node;
 
+       if (!debugfs_create_x32("caps", S_IRUSR, root, &host->caps))
+               goto err_node;
+
+       if (!debugfs_create_x32("caps2", S_IRUSR, root, &host->caps2))
+               goto err_node;
+
        if (!debugfs_create_file("clock", S_IRUSR | S_IWUSR, root, host,
                        &mmc_clock_fops))
                goto err_node;