mmc: dw_mmc: guarantee stop-abort cmd in data errors
authorSeungwon Jeon <tgih.jun@samsung.com>
Fri, 30 Aug 2013 15:14:05 +0000 (00:14 +0900)
committerChris Ball <cjb@laptop.org>
Thu, 26 Sep 2013 01:35:40 +0000 (21:35 -0400)
commit90c2143a8f6d0cd1dbae1ea32fcd1befb81e4b0d
tree719fb73b4dd807f0aa673207ed62cbd170d2628d
parent71abb1339436160b6ab0ae2f816a4046c7328f28
mmc: dw_mmc: guarantee stop-abort cmd in data errors

In error cases, DTO interrupt may or may not be generated depending
on remained data. Stop/Abort command ensures DTO generation for that
situation. Currently if 'stop' field of data is empty, there is no
stop/abort command. So, it could hang waiting DTO. This change
reinforces these cases.

Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
Tested-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/dw_mmc.c
include/linux/mmc/dw_mmc.h