From 12285b0823b55a54dc22fd7ed9afcad6c434e942 Mon Sep 17 00:00:00 2001 From: Girish K S Date: Fri, 5 Apr 2013 15:25:18 +0900 Subject: [PATCH] ARM: EXYNOS: force MAC ip to 32bit DMA The synopsys gigabit ethernet ip is compatible with only 32 bit buffers. so restrict the driver to use only 32 bit dma mapping. Signed-off-by: Girish K S Signed-off-by: Siva Reddy Signed-off-by: Kukjin Kim --- arch/arm/mach-exynos/mach-exynos5-dt.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c index e47c2a5d60f9..9596861969e4 100644 --- a/arch/arm/mach-exynos/mach-exynos5-dt.c +++ b/arch/arm/mach-exynos/mach-exynos5-dt.c @@ -25,6 +25,7 @@ #include "common.h" static u64 dma_mask64 = DMA_BIT_MASK(64); +static u64 dma_mask32 = DMA_BIT_MASK(32); static void __init exynos5_dt_map_io(void) { @@ -41,6 +42,10 @@ static int exynos5440_platform_notifier(struct notifier_block *nb, dev->dma_mask = &dma_mask64; dev->coherent_dma_mask = DMA_BIT_MASK(64); + + if (of_device_is_compatible(dev->of_node, "snps,dwmac-3.70a")) + dev->dma_mask = &dma_mask32; + return NOTIFY_OK; } -- 2.39.5