From: Seungwon Jeon Date: Fri, 30 Aug 2013 15:14:38 +0000 (+0900) Subject: mmc: dw_mmc: fix the transfer termination in IDMAC mode X-Git-Tag: v3.13-rc1~50^2~84 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa50f259d65603f40a82ef0d256a6a954a3db283;p=pandora-kernel.git mmc: dw_mmc: fix the transfer termination in IDMAC mode In IDMAC mode EVENT_XFER_COMPLETE is set when RI/TI of last descriptor is done. So if errors are happened in the middle of data transfers, 'dw_mci_stop_dma' during error handing can be called and eventually prevents this flag to be set. This results in permanent wait for EVENT_XFER_COMPLETE in 'dw_mci_tasklet_func'. Therefore, if dma running is stopped forcibly, EVENT_XFER_COMPLETE should be set. Reported-by: Bing Zhao Signed-off-by: Doug Anderson Signed-off-by: Seungwon Jeon Tested-by: Alim Akhtar Acked-by: Jaehoon Chung Signed-off-by: Chris Ball --- Reading git-diff-tree failed