OSDN Git Service

mmc: mmc_test: Add tests for sending commands during transfer
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 16 Aug 2016 10:44:12 +0000 (13:44 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 26 Sep 2016 19:31:29 +0000 (21:31 +0200)
commit4bbb9aac9a9a6cd4b2718e43f998c5e4e3b382cd
tree3198c7d4fc5c544879c4657510b5c52afa6eb940
parent5163af5a5e2e69c9a5a854b92ffa7e2f7672dbf7
mmc: mmc_test: Add tests for sending commands during transfer

Add 6 tests for sending commands during transfer. The tests are:
 * Commands during read - no Set Block Count (CMD23).
 * Commands during write - no Set Block Count (CMD23).
 * Commands during read - use Set Block Count (CMD23).
 * Commands during write - use Set Block Count (CMD23).
 * Commands during non-blocking read - use Set Block Count (CMD23).
 * Commands during non-blocking write - use Set Block Count (CMD23).

For a range of transfer sizes, the tests start an ongoing data transfer and
then repeatedly send the status command (CMD13) while the transfer
continues. The tests pass if all requests complete with no errors. The host
controller driver must support MMC_CAP_CMD_DURING_TFR.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/card/mmc_test.c