]> Pileus Git - ~andy/linux/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)
commit077d40731edc90ee9dedf63249034c8cd5f694ce
treede469044a1580e9d163b9821fc8fc5c9e2ea5ba7
parent74f330bceaa7b88d06062e1cac3d519a3dfc041e
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