]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: dw_mmc: fix mmc_test by not sending abort for DRTO/EBE errors
authoraddy ke <addy.ke@rock-chips.com>
Fri, 20 Feb 2015 02:55:25 +0000 (10:55 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 23 Mar 2015 13:13:29 +0000 (14:13 +0100)
commit2c843b9600f65cb4a0b8e228720b0af091a4a173
treef5d0e3e4356066bcdeac520b1581bd7e5c8d8352
parent6ad2ccd9d28c62da16b58caf0522097f712b4a09
mmc: dw_mmc: fix mmc_test by not sending abort for DRTO/EBE errors

The STOP command can terminate a data transfer between a memory card and
mmc controller.

As show in Synopsys DesignWare Cores Mobile Storage Host Databook:
Data timeout and Data end-bit error will terminate further data transfer
by mmc controller. So we should not send abort command to terminate a
data transfer again if we got DRTO and EBE interrupt.

After this patch, all mmc_test cases can pass on RK3288-Pink2 board.

Signed-off-by: Addy Ke <addy.ke@rock-chips.com>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Tested-by: Doug Anderson <dianders@chromium.org>
Tested-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc.c