aboutsummaryrefslogtreecommitdiffstats
path: root/patches.at91/0161-mmc-atmel-mci-remove-not-needed-DMA-capability-test.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches.at91/0161-mmc-atmel-mci-remove-not-needed-DMA-capability-test.patch')
-rw-r--r--patches.at91/0161-mmc-atmel-mci-remove-not-needed-DMA-capability-test.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/patches.at91/0161-mmc-atmel-mci-remove-not-needed-DMA-capability-test.patch b/patches.at91/0161-mmc-atmel-mci-remove-not-needed-DMA-capability-test.patch
new file mode 100644
index 00000000000000..30391ce3aefb4e
--- /dev/null
+++ b/patches.at91/0161-mmc-atmel-mci-remove-not-needed-DMA-capability-test.patch
@@ -0,0 +1,32 @@
+From 7cc485eab96c78d9e36f62040cc1c5ba927a5eed Mon Sep 17 00:00:00 2001
+From: Nicolas Ferre <nicolas.ferre@atmel.com>
+Date: Thu, 7 Jun 2012 10:54:33 +0200
+Subject: mmc: atmel-mci: remove not needed DMA capability test
+
+The test about DMA capability is not needed as it is
+performed in DMA-only functions: so remove it.
+
+Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
+---
+ drivers/mmc/host/atmel-mci.c | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c
+index 47421fc..7d9812c 100644
+--- a/drivers/mmc/host/atmel-mci.c
++++ b/drivers/mmc/host/atmel-mci.c
+@@ -834,9 +834,8 @@ static void atmci_dma_complete(void *arg)
+
+ dev_vdbg(&host->pdev->dev, "DMA complete\n");
+
+- if (host->caps.has_dma)
+- /* Disable DMA hardware handshaking on MCI */
+- atmci_writel(host, ATMCI_DMA, atmci_readl(host, ATMCI_DMA) & ~ATMCI_DMAEN);
++ /* Disable DMA hardware handshaking on MCI */
++ atmci_writel(host, ATMCI_DMA, atmci_readl(host, ATMCI_DMA) & ~ATMCI_DMAEN);
+
+ atmci_dma_cleanup(host);
+
+--
+1.8.0.197.g5a90748
+