]> 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)
commit6a59af3d8116999a57fa97102fd6c8a677ca9ac8
treede469044a1580e9d163b9821fc8fc5c9e2ea5ba7
parent3a258160f5b87a476cfabbb28cc5ce800b9d5421
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