mmc: dw_mmc: Improve handling of data transfer failure
authorMarek Vasut <marex@denx.de>
Mon, 27 Jul 2015 20:39:38 +0000 (22:39 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:17:40 +0000 (08:17 +0200)
commit3c6422280028abe8a2ebb5fb1382854bd9d42f44
treedb066fd60ae01073ef712c75936393fa2dee9e13
parentec24dbf425b1198089e170b1ff82113629192133
mmc: dw_mmc: Improve handling of data transfer failure

In case the data transfer failure happens, instead of returning
immediatelly, make sure the DMA is disabled, status register is
cleared and the bounce buffer is stopped.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
Cc: Tom Rini <trini@konsulko.com>
drivers/mmc/dw_mmc.c