]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2012 17:39:08 +0000 (10:39 -0700)
commit30545f24d99ae348670402ccc193381f7e591857
tree45fcac71ae2527a6953a7d7e12f13091526f245a
parent1a9422ec45b63e7d6703b5b668a750039956ba09
mmc: atmel-mci: not busy flag has also to be used for read operations

commit 077d40731edc90ee9dedf63249034c8cd5f694ce upstream.

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>
Signed-off-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/atmel-mci.c