From: Andy Shevchenko Date: Wed, 13 Oct 2010 08:22:22 +0000 (+0300) Subject: mmc: add a file to debugfs for changing host clock at runtime X-Git-Tag: v2.6.37-rc1~65^2~15 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=703aae3d09a4b351866f1a97b2afafb905bdbf1e;p=pandora-kernel.git mmc: add a file to debugfs for changing host clock at runtime For debugging power management features it is convenient to have the possibility of changing the MMC host controller clock at runtime. This patch adds a 'clock' file for this under the MMC host root of debugfs. Usage is as follows: # cat /sys/kernel/debug/mmc0/clock 52000000 # echo "1000000000" > /sys/kernel/debug/mmc0/clock # cat /sys/kernel/debug/mmc0/clock 52000000 # echo "48000000" > /sys/kernel/debug/mmc0/clock # cat /sys/kernel/debug/mmc0/clock 48000000 The middle example shows limits being applied by the host driver. Signed-off-by: Andy Shevchenko Cc: Adrian Hunter [cjb: modify changelog language] Signed-off-by: Chris Ball --- Reading git-diff-tree failed