mmc: tmio_mmc: fix CMD irq handling
authorArnd Hannemann <arnd@arndnet.de>
Wed, 29 Dec 2010 13:21:14 +0000 (14:21 +0100)
committerChris Ball <cjb@laptop.org>
Sun, 9 Jan 2011 04:52:32 +0000 (23:52 -0500)
commit2bd6a935555b06622fa7f47a9c411b8a7812e4dc
treeaa96bbf4376b9b40d52946b7e41d58082cc3c183
parent6ff56e0d8e02df023440ea65774cf1d15e669ece
mmc: tmio_mmc: fix CMD irq handling

With current code card insert/eject interrupts will acknowledge outstanding
commands. Normally this seems to be no problem, however if the hardware gets
stuck and no interrupts for CMD_TIMEOUT or CMD_RESPEND are generated, then
inserting and ejecting cards will falsely acknowledge outstanding commands
from the core.

This patch changes the behavior so that CMDs are only acked, if
CMD_TIMEOUT or CMD_RESPEND is received.

Signed-off-by: Arnd Hannemann <arnd@arndnet.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/tmio_mmc.c