From patchwork Thu Jun 2 18:59:34 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mika Westerberg X-Patchwork-Id: 844662 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p52J2U1P006887 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 2 Jun 2011 19:02:52 GMT Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QSD9a-0002mr-Da; Thu, 02 Jun 2011 19:01:58 +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 1QSD9a-0002Y8-3O; Thu, 02 Jun 2011 19:01:58 +0000 Received: from mail-ew0-f49.google.com ([209.85.215.49]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QSD9X-0002Xl-5V for linux-arm-kernel@lists.infradead.org; Thu, 02 Jun 2011 19:01:56 +0000 Received: by ewy3 with SMTP id 3so522530ewy.36 for ; Thu, 02 Jun 2011 12:01:52 -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=xswt1EauaOTm6dm2RmV2uYEMUdu7LnC2Z5tMQ+gyeOY=; b=YjB6t9V2PyqU7QXOv5r5q3Ylv0rvOUfYjH9y4y5kQNb4u6JQRPHIb5zZdY8sKvedG0 2EYcfi3LtKRaGT4t2X1gzfao4742L3HstLbLBc2KEzg4r/KkEg+MbMbx5fFJ76FLog8h DUa2X2YO6unGgPJXWsTuzgSHeZ941Z8le2Ois= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer; b=sNtVtgCHq+qz7j6+wkZiGo9CMZfaCbC3rM/eEJMWx0sOcnjhD/PrVZA52EgZMDXvn5 ChwNqNkhUFlSA969bFaLFOebEXoUFdwL6N1FRRpreWItu8s0gh4H18eDPr9gpAt0oK5I N0XWXtHFNJVSyTHuwd0lLJb1UdWBiAQ0rCtY4= Received: by 10.14.187.138 with SMTP id y10mr451402eem.145.1307041312807; Thu, 02 Jun 2011 12:01:52 -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 t52sm595726eej.0.2011.06.02.12.01.51 (version=SSLv3 cipher=OTHER); Thu, 02 Jun 2011 12:01:51 -0700 (PDT) From: Mika Westerberg To: netdev@vger.kernel.org Subject: [PATCH v2 1/5] ep93xx: set DMA masks for the ep93xx_eth Date: Thu, 2 Jun 2011 21:59:34 +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-20110602_150155_385023_EBAEF50E X-CRM114-Status: GOOD ( 15.13 ) 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.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.215.49 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is freemail (mika.westerberg[at]gmail.com) 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: Mika Westerberg , hsweeten@visionengravers.com, ryan@bluewatersys.com, kernel@wantstofly.org, 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]); Thu, 02 Jun 2011 19:02:54 +0000 (UTC) As the driver is now passing platform device to the DMA mapping functions, we should give it valid DMA masks. Signed-off-by: Mika Westerberg Acked-by: Russell King Acked-by: H Hartley Sweeten --- Changes to previous version are: - moved this patch to be first - added Russell's acks 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,