From patchwork Sat Jun 11 18:39:54 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mika Westerberg X-Patchwork-Id: 872172 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p5BIhCCu003378 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 11 Jun 2011 18:43:33 GMT Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QVT9D-0004A1-JN; Sat, 11 Jun 2011 18:43:04 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QVT9D-0008Rx-23; Sat, 11 Jun 2011 18:43:03 +0000 Received: from mail-ey0-f177.google.com ([209.85.215.177]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QVT8p-0008NE-3f for linux-arm-kernel@lists.infradead.org; Sat, 11 Jun 2011 18:42:41 +0000 Received: by eyh6 with SMTP id 6so1493724eyh.36 for ; Sat, 11 Jun 2011 11:42:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:from:to:cc:subject:date:message-id :x-mailer; bh=5J7TVuWNhT90h+9Q80cebV7iQZnuJ+S/ZxHDjnARvsA=; b=Qxm/uE1vI6V8JUATDSfdvs/ygT2yFmMFYZ614JIkNWeKnCNTNT/Ly2JIk+8Wwk3ER3 ajl/Uq14fc/j4MfDnl3U8+91D4uaq161Ja7RFhOjd9pFEYHX1pQ5owpnLEvJj7jtrHS9 HW+3IBvDeSWjatu+nvxRMi3YVcm2YC/Pdnou0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer; b=vDkfYIEEb7lh5qWCKkhoByzahrNGA0jWPK5LXGt8uXi4ApY2OA/xZtUxBKQPwJZH/4 oCohJi4d0piP3FAAas4GFx2KLGlr1Y5dOF0YmFDTZmISFZGYodQBwGv+Ei2eBrmg1igH s3LVr1CrBX6c9MD2PC3F/L0uUuKABtzbLES6I= Received: by 10.213.106.3 with SMTP id v3mr447963ebo.40.1307817755212; Sat, 11 Jun 2011 11:42:35 -0700 (PDT) Received: from acer.healthdatacare.com (a88-115-37-157.elisa-laajakaista.fi [88.115.37.157]) by mx.google.com with ESMTPS id p80sm3568127eeb.25.2011.06.11.11.42.33 (version=SSLv3 cipher=OTHER); Sat, 11 Jun 2011 11:42:33 -0700 (PDT) From: Mika Westerberg To: netdev@vger.kernel.org Subject: [PATCH v3 1/5] ep93xx: set DMA masks for the ep93xx_eth Date: Sat, 11 Jun 2011 21:39:54 +0300 Message-Id: X-Mailer: git-send-email 1.7.4.4 X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110611_144239_460499_1C434AE2 X-CRM114-Status: GOOD ( 12.95 ) X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is freemail (mika.westerberg[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.215.177 listed in list.dnswl.org] 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 0.0 RFC_ABUSE_POST Both abuse and postmaster missing on sender domain 0.0 T_TO_NO_BRKTS_FREEMAIL T_TO_NO_BRKTS_FREEMAIL Cc: rmallon@gmail.com, Mika Westerberg , hsweeten@visionengravers.com, ynezz@true.cz, davem@davemloft.net, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sat, 11 Jun 2011 18:43:33 +0000 (UTC) Since the driver uses the DMA API, we should pass it valid DMA masks. Signed-off-by: Mika Westerberg Acked-by: Russell King Acked-by: H Hartley Sweeten Tested-by: Petr Stetiar --- arch/arm/mach-ep93xx/core.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-ep93xx/core.c b/arch/arm/mach-ep93xx/core.c index 8207954..1d4b65f 100644 --- a/arch/arm/mach-ep93xx/core.c +++ b/arch/arm/mach-ep93xx/core.c @@ -402,11 +402,15 @@ static struct resource ep93xx_eth_resource[] = { } }; +static u64 ep93xx_eth_dma_mask = DMA_BIT_MASK(32); + static struct platform_device ep93xx_eth_device = { .name = "ep93xx-eth", .id = -1, .dev = { - .platform_data = &ep93xx_eth_data, + .platform_data = &ep93xx_eth_data, + .coherent_dma_mask = DMA_BIT_MASK(32), + .dma_mask = &ep93xx_eth_dma_mask, }, .num_resources = ARRAY_SIZE(ep93xx_eth_resource), .resource = ep93xx_eth_resource,