• Andy Shevchenko's avatar
    mmc_test: collect data and show it via sysfs by demand · 3183aa15
    Andy Shevchenko authored
    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: default avatarAndy Shevchenko <ext-andriy.shevchenko@nokia.com>
    Cc: Chris Ball <cjb@laptop.org>
    Cc: <linux-mmc@vger.kernel.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarChris Ball <cjb@laptop.org>
    3183aa15
mmc_test.c 48.9 KB