]> 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>
Sat, 12 Nov 2011 01:58:11 +0000 (20:58 -0500)
commitdee93657d7f56ba9d2ea06bc52e4e364fd660b25
treeedc2cf4166f2c80dcca5114abc86970582ff6e04
parent75229b4f40147315b81fd9a5e15198d20016a972
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