From patchwork Mon Dec 3 12:23:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 10709445 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C86AB14BD for ; Mon, 3 Dec 2018 12:23:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B84E52A346 for ; Mon, 3 Dec 2018 12:23:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB47C2AD21; Mon, 3 Dec 2018 12:23:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1AB562B32B for ; Mon, 3 Dec 2018 12:23:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726208AbeLCMY3 (ORCPT ); Mon, 3 Dec 2018 07:24:29 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:42955 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725975AbeLCMY3 (ORCPT ); Mon, 3 Dec 2018 07:24:29 -0500 Received: by mail-pf1-f193.google.com with SMTP id 64so6275402pfr.9 for ; Mon, 03 Dec 2018 04:23:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/bjVDdnS/APoelMPnzLk5c7aGNVHCfhhEyPT8JTd4lw=; b=nMxaNcPtVDDaN/qouRLxLhl7Hw3gZGMxYLqZWDYm9l74MJdxvfVAU5f5GI+mosys3p 1KpO/+CGIISpc+1I+dzhwGKluFzOc4ZfNzbxLjBHEBPckkokFj9J4X2BNolMhbUrWWms /5qoukI00vTweZOw5OawpS/kHGZ4FIwuBY4x0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/bjVDdnS/APoelMPnzLk5c7aGNVHCfhhEyPT8JTd4lw=; b=jW9KvkzVmJcQ424GcNhBW9KmyzIDOPxcsYwokAyKKz+STPStCLkNzmTDuMd8Q4Qv28 RSvJx1Qk0BSta1z62Q/u++VGuwoH/GXU2g4+z0rvcAYHL6NP9LK/SaOYpo7I2+sU8aiK yuRhndPAwXvcxKEd2b8jOm2E//T4FbWyYc3wmnAZl0z08tRUqFjTbm0QBmUYaFyYFoj/ U0oWFuIzxpMhahz7nmykj1uluXn/mXSWrsG3EAFWR5EMufxs0XQyT5Aw5b35bkG/ZX2D TU9d1q4d44nHG8ILi0I99UMz6RtpKxzAiBFk3rM+w1TJGdNwDUs2HkjUpq0BAS3nUB9t aTzQ== X-Gm-Message-State: AA+aEWYqducT6GjBxHxm1PuS0SOcYx/GnA/wDD0EoYLgfiz2GSaJRMuf em5QLcLMKZnM2+ucc9xgCLIzGRGZct89xA== X-Google-Smtp-Source: AFSGD/WzSirxGK7blYPkB6x2i2/3ez8ead6vZKg/y7xzKqR5nrj9QFCDCo6OG5C7qInOBDZbsjvVRA== X-Received: by 2002:a63:5026:: with SMTP id e38mr13109406pgb.123.1543839818343; Mon, 03 Dec 2018 04:23:38 -0800 (PST) Received: from shiro.work (p1206073-ipngn200715sizuokaden.shizuoka.ocn.ne.jp. [118.13.44.73]) by smtp.googlemail.com with ESMTPSA id m20sm15824842pgv.93.2018.12.03.04.23.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Dec 2018 04:23:37 -0800 (PST) From: Daniel Palmer To: linux-sh@vger.kernel.org Cc: Daniel Palmer Subject: [PATCH] SH: Add dma mask for sh_eth on ecovec24. Date: Mon, 3 Dec 2018 21:23:23 +0900 Message-Id: <20181203122323.765-1-daniel@0x0f.com> X-Mailer: git-send-email 2.20.0.rc1 MIME-Version: 1.0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Cleans up the warnings and makes ethernet work again on the ecovec24 board. Signed-off-by: Daniel Palmer --- arch/sh/boards/mach-ecovec24/setup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c index 06a894526a0b..3e8e7e915c7f 100644 --- a/arch/sh/boards/mach-ecovec24/setup.c +++ b/arch/sh/boards/mach-ecovec24/setup.c @@ -175,6 +175,8 @@ static struct platform_device sh_eth_device = { .id = 0, .dev = { .platform_data = &sh_eth_plat, + .dma_mask = &sh_eth_device.dev.coherent_dma_mask, + .coherent_dma_mask = DMA_BIT_MASK(32), }, .num_resources = ARRAY_SIZE(sh_eth_resources), .resource = sh_eth_resources,