]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: atmel-mci: not busy flag has also to be used for read operations
authorLudovic Desroches <ludovic.desroches@atmel.com>
Tue, 24 Jul 2012 09:42:04 +0000 (11:42 +0200)
committerChris Ball <cjb@laptop.org>
Wed, 8 Aug 2012 03:04:57 +0000 (23:04 -0400)
commitcce088b1b9dba9c904ba4f3356be76b41788553e
tree587bb20d2be4bf377ee41528481d202d068340a8
parent980a97e38f713da393a3f9789aa990b259d1c7d5
mmc: atmel-mci: not busy flag has also to be used for read operations

Even if the datasheet says that the not busy flag has to be used only
for write operations, it's false except for version lesser than v2xx.

Not waiting on the not busy flag for read operations can cause the
controller to hang-up during the initialization of some SD cards
with DMA after the first CMD6 -- the next command is sent too early.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Cc: stable <stable@vger.kernel.org> [3.5, 3.6]
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/atmel-mci.c