]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: dw_mmc: amend using error interrupt status
authorSeungwon Jeon <tgih.jun@samsung.com>
Wed, 1 Aug 2012 00:30:30 +0000 (09:30 +0900)
committerChris Ball <cjb@laptop.org>
Tue, 4 Sep 2012 17:58:08 +0000 (13:58 -0400)
commit849e36b783667b73ff2eabce441e42d496ad603c
treea1c07245f4654ae67e5d6e4f161a23a55bb783c7
parentef3962d78d41802c84902f22a07f87cba50ed450
mmc: dw_mmc: amend using error interrupt status

RINTSTS status includes masked interrupts as well as unmasked.
data_status and cmd_status are set by value of RINTSTS in interrupt handler
and tasklet finally uses it to decide whether error is happened or not.
In addition, MINTSTS status is used for setting data_status in PIO.
Masked error interrupt will not be handled and that status can be considered
non-error case.

Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
Reviewed By: Girish K S <girish.shivananjappa@linaro.org>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Acked-by: Will Newton <will.newton@imgtec.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/dw_mmc.c