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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Feb 2014 21:50:12 +0000 (13:50 -0800)
commitdc00440ad684d1df39941efe0addb997dc1fea82
treeb67e8e1b463c2b00ad34e0345342c88cc679362c
parent0efb36514cc718c62d6c48885b4f332a5bb07348
mmc: atmel-mci: fix timeout errors in SDIO mode when using DMA

commit 66b512eda74d59b17eac04c4da1b38d82059e6c9 upstream.

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.

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