From patchwork Thu Apr 4 10:51:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kim Kukjin X-Patchwork-Id: 2391911 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork2.kernel.org (Postfix) with ESMTP id 06E6EDF25A for ; Thu, 4 Apr 2013 10:54:24 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UNhoE-0007S0-Kz for patchwork-linux-arm@patchwork.kernel.org; Thu, 04 Apr 2013 10:54:23 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UNhm6-0001md-HU; Thu, 04 Apr 2013 10:52:10 +0000 Received: from mail-pb0-f52.google.com ([209.85.160.52]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UNhm4-0001lu-7D for linux-arm-kernel@lists.infradead.org; Thu, 04 Apr 2013 10:52:08 +0000 Received: by mail-pb0-f52.google.com with SMTP id mc8so1371512pbc.39 for ; Thu, 04 Apr 2013 03:52:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=2LQrUXVhhdXE6t5Gxk4JLs5U6BFpdqGUEgU9BVojJ7I=; b=Vhw4K7VFZDdJaIIN/ea9NvMFRS8tZbcLfqvTnf2lHnnXMSriZhAWN22Q41/i6DPDea WMCWPwpMD9m9WRIZANBlNFqDyqvH6hH86of4bO0DXsbZXvAOyVHHu2RMkJB755GQtWwT lgH8HrYXbKfhIr++EfBClsg0x00UX5gUfdsVrJigQMnPJZJehygIrsJOfKH3SnEN+Dy7 6qXio+NhLHMqzgJxVmSFVvmFaiBbhGIp8PUWW6McGtbaQ6gQhQJHUpBnvXB9HA7K8G8m NK38l4jqsWhQNurMHds+QUQwBBST6jEMLj1USsl37EnZeI2WezOOqpzn6+BiHRnl/zJm MNsg== X-Received: by 10.66.121.169 with SMTP id ll9mr8618447pab.178.1365072726580; Thu, 04 Apr 2013 03:52:06 -0700 (PDT) Received: from localhost.localdomain ([121.136.168.198]) by mx.google.com with ESMTPS id fc8sm10971334pad.21.2013.04.04.03.52.03 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 04 Apr 2013 03:52:05 -0700 (PDT) From: Kukjin Kim To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/2] ARM: EXYNOS: force mac ip to 32bit dma Date: Thu, 4 Apr 2013 19:51:44 +0900 Message-Id: <1365072704-4568-2-git-send-email-kgene.kim@samsung.com> X-Mailer: git-send-email 1.7.4.4 In-Reply-To: <1365072704-4568-1-git-send-email-kgene.kim@samsung.com> References: <1365072704-4568-1-git-send-email-kgene.kim@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130404_065208_374008_2FCCA36B X-CRM114-Status: GOOD ( 13.59 ) X-Spam-Score: -1.8 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.8 RCVD_IN_SORBS_WEB RBL: SORBS: sender is an abusable web server [121.136.168.198 listed in dnsbl.sorbs.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.52 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (kgene.kim[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Girish K S , Kukjin Kim , Siva Reddy X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Girish K S 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 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c index e47c2a5..9596861 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; }