]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sh-mmcif: properly handle MMC_WRITE_MULTIPLE_BLOCK completion IRQ
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Tue, 18 Sep 2012 23:10:24 +0000 (23:10 +0000)
committerChris Ball <cjb@laptop.org>
Wed, 3 Oct 2012 14:05:27 +0000 (10:05 -0400)
commit6c14ebb7245b174eb91d9b01f91c18dc4c7910c6
treebe668aee14461db0c4ba60c231dc5cb7314beea4
parent7d92e2873d79e8b5c7a03879c5f644c094d95b04
mmc: sh-mmcif: properly handle MMC_WRITE_MULTIPLE_BLOCK completion IRQ

Upon completion of a MMC_WRITE_MULTIPLE_BLOCK command MMCIF issues an IRQ
with the DTRANE bit set and often with one or several of CMD12 bits set.
If those interrupts are not acknowledged, an additional interrupt can be
produced and will be delivered later, possibly, when the transaction has
already been completed. To prevent this from happening, CMD12 completion
interrupt sources have to be cleared too upon reception of an DTRANE IRQ.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Tested-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sh_mmcif.c