]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: core: add random fault injection
authorPer Forlin <per.forlin@linaro.org>
Fri, 19 Aug 2011 12:52:37 +0000 (14:52 +0200)
committerChris Ball <cjb@laptop.org>
Tue, 23 Aug 2011 16:16:17 +0000 (12:16 -0400)
commit084db5311adf76db92c3ea32c4a1e6d7b65851a6
tree1cb3bdaa377354c991ccc8149c05536f18b8b24e
parentdbd1e2bc1930f1f567b00a9b0d18b9cafd7240ac
mmc: core: add random fault injection

This adds support to inject data errors after a completed host transfer.
The mmc core will return error even though the host transfer is successful.
This simple fault injection proved to be very useful to test the
non-blocking error handling in the mmc_blk_issue_rw_rq().
Random faults can also test how the host driver handles pre_req()
and post_req() in case of errors.

Signed-off-by: Per Forlin <per.forlin@linaro.org>
Acked-by: Akinobu Mita <akinobu.mita@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/core.c
drivers/mmc/core/debugfs.c
include/linux/mmc/host.h
lib/Kconfig.debug