From: Andy Shevchenko Date: Wed, 1 Sep 2010 06:26:47 +0000 (+0300) Subject: mmc_test: collect data and show it via sysfs by demand X-Git-Tag: v2.6.37-rc1~65^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3183aa1534de4e98ffb0527d4f2be7ac9f019a4e;p=pandora-kernel.git mmc_test: collect data and show it via sysfs by demand Make it possible to get test results via sysfs. It helps to do tests non-interactively. We have the file created under sysfs already and can use it to show test results. Prior to this patch, the "test" file under each card's sysfs node was write-only, and results were obtained by looking at dmesg. This patch improves programmatic access to the test results, making them available by reading back from the same "test" file: [root@host mmc0:e624]# echo 6 > test [root@host mmc0:e624]# cat test Test 6: 2 [cjb@laptop.org: changelog improvements] Signed-off-by: Andy Shevchenko Cc: Chris Ball Cc: Signed-off-by: Andrew Morton Signed-off-by: Chris Ball --- Reading git-diff-tree failed