]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: Export internal host state through debugfs
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Thu, 24 Jul 2008 12:18:57 +0000 (14:18 +0200)
committerPierre Ossman <drzeus@drzeus.cx>
Sat, 26 Jul 2008 23:26:16 +0000 (01:26 +0200)
commit4f86a347aad8b6f14349564c86163d77391a1f39
tree0f24dc879d9645935974489d152dd83815fcff68
parent24228ce90555ba81e70f3343da0ac191e2985e98
mmc: Export internal host state through debugfs

When CONFIG_DEBUG_FS is set, create a few files under /sys/kernel/debug
containing information about an mmc host's internal state. Currently,
just a single file is created, "ios", which contains information about
the current operating parameters for the bus (clock speed, bus width,
etc.)

Host drivers can add additional files and directories under the host's
root directory by passing the debugfs_root field in struct mmc_host as
the 'parent' parameter to debugfs_create_*.

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/core/Makefile
drivers/mmc/core/core.h
drivers/mmc/core/debugfs.c [new file with mode: 0644]
drivers/mmc/core/host.c
include/linux/mmc/host.h