From: Girish K S Date: Fri, 5 Apr 2013 06:25:18 +0000 (+0900) Subject: ARM: EXYNOS: force MAC ip to 32bit DMA X-Git-Tag: next-20130521~7^2~4^2~3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=12285b0823b55a54dc22fd7ed9afcad6c434e942;p=karo-tx-linux.git 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 --- 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; }