Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c5c685e authored by Abbas Raza's avatar Abbas Raza Committed by Ulf Hansson
Browse files

mmc: Export host capabilities to debugfs.



This patch exports the host capabilities to debugfs

Signed-off-by: default avatarAbbas Raza <Abbas_Raza@mentor.com>
Signed-off-by: default avatarAndrew Gabbasov <andrew_gabbasov@mentor.com>
[Harish: Added caps2, moved creation to mmc_add_host_debugfs]
Signed-off-by: default avatarHarish Jenny K N <harish_kandiga@mentor.com>
Reviewed-by: default avatarShawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent c42e8e05
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -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))
	if (!debugfs_create_file("ios", S_IRUSR, root, host, &mmc_ios_fops))
		goto err_node;
		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,
	if (!debugfs_create_file("clock", S_IRUSR | S_IWUSR, root, host,
			&mmc_clock_fops))
			&mmc_clock_fops))
		goto err_node;
		goto err_node;