]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: dw_mmc: protect a sequence of request and request-done.
authorSeungwon Jeon <tgih.jun@samsung.com>
Mon, 20 Jun 2011 08:24:16 +0000 (17:24 +0900)
committerChris Ball <cjb@laptop.org>
Wed, 20 Jul 2011 21:20:53 +0000 (17:20 -0400)
commitf578adb190104d22d31607ef63b699a8f4b12495
tree9a6a19212477dc7f5a82ca6ecb9bbbb8238ec005
parentc503990ad4fa9a170472cdf5517c9c55423e64c5
mmc: dw_mmc: protect a sequence of request and request-done.

Response timeout (RTO), Response crc error (RCRC) and Response error (RE)
signals come with command done (CD) and can be raised preceding command
done (CD). That is these error interrupts and CD can be handled in
separate dw_mci_interrupt(). If mmc_request_done() is called because of
a response timeout before command done has occured, we might send the
next request before the CD of current request is finished. This can
bring about a broken sequence of request and request-done.

And Data error interrupt (DRTO, DCRC, SBE, EBE) and data transfer
over (DTO) have the same problem.

Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
Acked-by: Will Newton <will.newton@imgtec.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/dw_mmc.c