mmc: jz4740: don't wait for PRG_DONE after stop command with R1 response
authorAlex Smith <alex.smith@imgtec.com>
Tue, 29 Apr 2014 12:54:54 +0000 (13:54 +0100)
committerChris Ball <chris@printf.net>
Mon, 12 May 2014 22:08:22 +0000 (18:08 -0400)
commit1acee84b6fcfccb2f3488bfdf23664b47e0c445b
tree05db89df2849dabf8f2436acc42b46b69702da98
parentc373eb489b27b268c9b8c267b212d10864bc8cdd
mmc: jz4740: don't wait for PRG_DONE after stop command with R1 response

As of commit bcc3e1726d ("mmc: block: Use R1 responses for stop cmds for
read requests"), stop commands for reads do not have MMC_RSP_BUSY set.
In this case we should not wait for a PRG_DONE IRQ after sending the
stop command: it will not get raised when the busy flag is not set,
causing the request to fail with a timeout.

Signed-off-by: Alex Smith <alex.smith@imgtec.com>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Cc: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Chris Ball <chris@printf.net>
Cc: James Hogan <james.hogan@imgtec.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <chris@printf.net>
drivers/mmc/host/jz4740_mmc.c