From patchwork Sat Feb 15 01:26:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 3655131 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 45165BF13A for ; Sat, 15 Feb 2014 00:27:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6A924201DE for ; Sat, 15 Feb 2014 00:27:54 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 52212201C7 for ; Sat, 15 Feb 2014 00:27:53 +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 1WET6B-0003gj-Ia; Sat, 15 Feb 2014 00:27:15 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WET69-0000OC-44; Sat, 15 Feb 2014 00:27:13 +0000 Received: from mail-la0-f54.google.com ([209.85.215.54]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WET66-0000Nr-K2 for linux-arm-kernel@lists.infradead.org; Sat, 15 Feb 2014 00:27:11 +0000 Received: by mail-la0-f54.google.com with SMTP id y1so9907129lam.13 for ; Fri, 14 Feb 2014 16:26:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:organization:to:subject:date:user-agent:cc :references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=6ogKP61ypeT9FmBVrAlnPXVFBzURLZ2+lpFXHpCUys4=; b=agmgxZs858VglDxxaNL5ufDFWvRPP9a0O9/frL7C88HXc+0oGOI1XYRKzk+JPI/9vu tIUwR87iCxvdCxyoZZ+GHT99xwQHbxV1UwC3PSqU7dZ3nz8h+E24SaqlQv/wF9a2FbFX 3EhbGNIk7NdKlDYXxDvGNTzvD8YIa4RcutEAGIC1328Y9xbvNInS7JFhC5ugp1r8hGF4 jB41BE8qx8JAbG5I21ViJ8Jfj8cVIkHG0AFK59xE7h0tlCU6T435lvcIca2o5xMaCmoq unANbkrw8wVS7Js+Ny/M6ZCxBpv3mvSwAz0ny7y3H8oLtJ+tDf/FeL2TAlv19S7KcCzk 6fuw== X-Gm-Message-State: ALoCoQmtHhGT8qoGclqAaV9pMAaS4an43shbN/O3GrzZgOeXjE1HoP8T2gDsFUqagE7VSbYG+m+s X-Received: by 10.152.161.234 with SMTP id xv10mr159767lab.41.1392424008500; Fri, 14 Feb 2014 16:26:48 -0800 (PST) Received: from wasted.cogentembedded.com (ppp83-237-57-97.pppoe.mtu-net.ru. [83.237.57.97]) by mx.google.com with ESMTPSA id bl8sm7653263lbb.3.2014.02.14.16.26.47 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 14 Feb 2014 16:26:48 -0800 (PST) From: Sergei Shtylyov Organization: Cogent Embedded To: horms@verge.net.au, linux-sh@vger.kernel.org Subject: [PATCH 1/5] ARM: shmobile: Armadillo 800 EVA: set proper DMA masks for Ether device Date: Sat, 15 Feb 2014 04:26:52 +0300 User-Agent: KMail/1.13.5 (Linux/2.6.32.26-175.fc12.i686.PAE; KDE/4.4.5; i686; ; ) References: <201402150424.30954.sergei.shtylyov@cogentembedded.com> In-Reply-To: <201402150424.30954.sergei.shtylyov@cogentembedded.com> MIME-Version: 1.0 Message-Id: <201402150426.52493.sergei.shtylyov@cogentembedded.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140214_192710_784239_C7C5D0B2 X-CRM114-Status: GOOD ( 11.76 ) X-Spam-Score: -2.6 (--) Cc: linux@arm.linux.org.uk, magnus.damm@gmail.com, linux-arm-kernel@lists.infradead.org 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Ether MAC is a DMA-capable device and so should have 'dev.dma_mask' and 'dev.coherent_dma_mask' fields set properly, to reflect 32-bit DMA addressing ability. Signed-off-by: Sergei Shtylyov --- arch/arm/mach-shmobile/board-armadillo800eva.c | 2 ++ 1 file changed, 2 insertions(+) Index: renesas/arch/arm/mach-shmobile/board-armadillo800eva.c =================================================================== --- renesas.orig/arch/arm/mach-shmobile/board-armadillo800eva.c +++ renesas/arch/arm/mach-shmobile/board-armadillo800eva.c @@ -383,6 +383,8 @@ static struct platform_device sh_eth_dev .id = -1, .dev = { .platform_data = &sh_eth_platdata, + .dma_mask = &sh_eth_device.dev.coherent_dma_mask, + .coherent_dma_mask = DMA_BIT_MASK(32), }, .resource = sh_eth_resources, .num_resources = ARRAY_SIZE(sh_eth_resources),