On Monday 12 October 2015 11:25 AM, Muni Sekhar wrote:
Hi , I tried to use the MMC host test driver (mmc_test.ko) for testing SD Host controller hardware. When I load the driver I noticed that mmc_test_probe() not getting called. Could anyone specify the exact usage of mmc_test.ko?
Hello Muni Sekhar, I think the following might help you in using MMC_TEST.KO Module 0. insmod mmc_test.ko 1. unbind the mmc block driver echo mmc0:b368 > /sys/bus/mmc/drivers/mmcblk/unbind 2. bind the mmc_test driver echo mmc0:b368 > /sys/bus/mmc/drivers/mmc_test/bind 3. mount the debugfs if you don't mount for debugfs mount -t debugfs none /sys/kernel/debug 4. After mount, you can see the "/sys/kernel/debug/mmc0/mmc0:b368/test" 5. echo "test number" > /sys/kernel/debug/mmc0/mmc0\:b368/test you can see the "test number" using the "cat /sys/kernel/debug/mmc0/mmc0\:b368/testlist" The above has been copied straigtly from thelink <http://forum.kernelnewbies.org/read.php?12,1991,116405#msg-116405> -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html