]> git.baikalelectronics.ru Git - kernel.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>
Tue, 4 Sep 2012 17:58:07 +0000 (13:58 -0400)
commitef3962d78d41802c84902f22a07f87cba50ed450
treede469044a1580e9d163b9821fc8fc5c9e2ea5ba7
parent43422be6857a7e90450307fb3c76eddda017e186
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