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: 3655121 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9658F9F334 for ; Sat, 15 Feb 2014 00:26:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BB79420203 for ; Sat, 15 Feb 2014 00:26:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A6872201DE for ; Sat, 15 Feb 2014 00:26:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753251AbaBOA0u (ORCPT ); Fri, 14 Feb 2014 19:26:50 -0500 Received: from mail-la0-f48.google.com ([209.85.215.48]:33722 "EHLO mail-la0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753092AbaBOA0t (ORCPT ); Fri, 14 Feb 2014 19:26:49 -0500 Received: by mail-la0-f48.google.com with SMTP id mc6so9828850lab.35 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=PZLS3CNwcSj0q/16yOOccxA/Fhl61TwLgiVQ24tPxqAV+OIVSspx0UeEhirHdDklu7 HmJCRJOK3W95fZZP6gLyY3A74DlTdZliRcOk2hqHculEXpZomgWnVhkHLQ3jC+nAA/yD 1rMUD6bMQHLEhEVxmWn2fUFVSxFFKl11GH8Ic63B2uEVGwT6U/GEwOK+OeKdKGwb3RKW 1oaPwjbeASzrAAzkT7ywBg66fZBOqlxWuAmmCEEQ96MHd+8Dh6gR+0LvZKHzqFa9PnV7 E7G0FTDMkJc9UKDaUNmg20rOPckKktJcje1U2L7D+0xxILCzfDw/GMm2geASKYS1YYTw +prw== X-Gm-Message-State: ALoCoQl2vq+Rt8Pr4ESJZlf2I98Q2Ab4oA9aGQ93q4xZxRJmAQH7gg6rFyOAeN6UwvcXu5TuQgX1 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; ; ) Cc: magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org 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> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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(+) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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),