]> git.karo-electronics.de Git - karo-tx-linux.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>
Wed, 8 Aug 2012 03:16:46 +0000 (23:16 -0400)
commitbd9bba2ff4af1b57d93469fdd462447740811ede
tree7ba27cd9bc7a726ce2a24e01d4e8b94da98ba72c
parent21ef9b2f64b4a57cd2c57ae9d7aae59d644bebe0
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