]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: debugfs: expose the SDCLK frq in sys ios (V6)
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>
Fri, 4 Nov 2011 12:53:19 +0000 (13:53 +0100)
committerChris Ball <cjb@laptop.org>
Tue, 15 Nov 2011 13:07:56 +0000 (08:07 -0500)
commitda0b92c0bc2b2373e95645a72b9fe5b4feda9e56
tree9cfacc153b1c3e02977a7c96e163d22f730c84a6
parentd28ccefce746bbfd0e68cc08a5dcaec970181594
mmc: debugfs: expose the SDCLK frq in sys ios (V6)

This patch is to expose the actual SDCLK frequency in
/sys/kernel/debug/mmcX/ios entry.

For example, if the max clk for a normal speed card is 20MHz this
is reported in /sys/kernel/debug/mmcX/ios.  Unfortunately the actual
SDCLK frequency (i.e. Baseclock / divisor) is not reported at all:
for example, in that case, on Arasan HC, it should be 48/4=12 (MHz).

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/debugfs.c
drivers/mmc/host/sdhci.c
include/linux/mmc/host.h