]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: atmel-mci: fix timeout errors in SDIO mode when using DMA
authorLudovic Desroches <ludovic.desroches@atmel.com>
Wed, 20 Nov 2013 15:01:11 +0000 (16:01 +0100)
committerChris Ball <cjb@laptop.org>
Tue, 26 Nov 2013 22:23:51 +0000 (17:23 -0500)
commit0bd6d96d8bd9cfd3d46b3de09c82192251e3d865
treefc5fdbe7f34a622fffb98631aa14646a3b8aca30
parent51432b5191899a3933b48ad02dfb136b20828645
mmc: atmel-mci: fix timeout errors in SDIO mode when using DMA

With some SDIO devices, timeout errors can happen when reading data.
To solve this issue, the DMA transfer has to be activated before sending
the command to the device. This order is incorrect in PDC mode. So we
have to take care if we are using DMA or PDC to know when to send the
MMC command.

Cc: stable <stable@vger.kernel.org> # 3.2+
Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/atmel-mci.c