]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: dw_mmc: fix the error handling for dma operation
authorJaehoon Chung <jh80.chung@samsung.com>
Mon, 21 Nov 2016 01:51:48 +0000 (10:51 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 21 Nov 2016 10:08:28 +0000 (11:08 +0100)
commitcf9bd1b0b77af869e49874fd33074face4b5a5ca
tree01cf3ff978557f6eab79ce9c3524989cf04b54ca
parent9809f0cc82a5c95de4bb5166a9c9d5ea3f03a8e0
mmc: dw_mmc: fix the error handling for dma operation

When dma->start is failed,then it has to fall back to PIO mode
for current transfer.

But Host controller was already set to bits relevant to DMA operation.
If needs to use the PIO mode, Host controller has to stop the DMA
operation. (It's more stable than now.)

When it occurred error, it's not running any request.

Fixes: 2997adf406c4 ("mmc: dw_mmc: Add external dma interface support")
Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Cc: <stable@vger.kernel.org> # v4.3+
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc.c