mmc: core: Set data timeout for mmc bus test commands (CMD14 and CMD19).
authorMinjian Wu <minjianwu@micron.com>
Sun, 25 Aug 2013 03:25:12 +0000 (23:25 -0400)
committerlintao <lintao@rock-chips.com>
Fri, 7 Mar 2014 06:08:40 +0000 (14:08 +0800)
Signed-off-by: Minjian Wu <minjianwu@micron.com>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/mmc_ops.c

index 837fc7386e237e620f408fd740ec702ad43c2c8b..ef183483d5b67934440cd8dc1a8d6910467e6a61 100644 (file)
@@ -531,6 +531,7 @@ mmc_send_bus_test(struct mmc_card *card, struct mmc_host *host, u8 opcode,
 
        data.sg = &sg;
        data.sg_len = 1;
+       mmc_set_data_timeout(&data, card);
        sg_init_one(&sg, data_buf, len);
        mmc_wait_for_req(host, &mrq);
        err = 0;