summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubash Patel <subash.rp@samsung.com>2012-12-05 10:34:19 +0530
committerTushar Behera <tushar.behera@linaro.org>2013-01-22 11:41:38 +0530
commit9f52de08c36ae7216416198e6f71a2be77268b52 (patch)
treec0aaa378edd430b6d978ef682f9d9435d5457eba
parent54eb64ff5d211e3d43c634cbac4cc62ec66004c0 (diff)
downloadlinux-topics-9f52de08c36ae7216416198e6f71a2be77268b52.tar.gz
ARM: exynos: add coherent_dma_mask
This patch adds the coherent_dma_mask for the dw_mmc device. This is needed as check is now done in dma-mapping framework before allocating the buffers. Note: Find a better place to add this Signed-off-by: Subash Patel <subash.rp@samsung.com>
-rw-r--r--drivers/mmc/host/dw_mmc-exynos.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mmc/host/dw_mmc-exynos.c b/drivers/mmc/host/dw_mmc-exynos.c
index 4d50da61816..8f46292fe49 100644
--- a/drivers/mmc/host/dw_mmc-exynos.c
+++ b/drivers/mmc/host/dw_mmc-exynos.c
@@ -16,6 +16,7 @@
#include <linux/mmc/dw_mmc.h>
#include <linux/of.h>
#include <linux/of_gpio.h>
+#include <linux/dma-mapping.h>
#include "dw_mmc.h"
#include "dw_mmc-pltfm.h"
@@ -232,6 +233,8 @@ int dw_mci_exynos_probe(struct platform_device *pdev)
match = of_match_node(dw_mci_exynos_match, pdev->dev.of_node);
drv_data = match->data;
+ /* set the dma coherent mask */
+ pdev->dev.coherent_dma_mask = DMA_BIT_MASK(64);
return dw_mci_pltfm_register(pdev, drv_data);
}