Received: by 10.192.165.156 with SMTP id m28csp105709imm; Tue, 17 Apr 2018 07:15:48 -0700 (PDT) X-Google-Smtp-Source: AIpwx49mRBpkLnugtE0Fcz5nuEg+5XVI5mL/J+3kYhoGttn+m55gMcaywAE7sK+OsYbAijtVessC X-Received: by 2002:a17:902:6949:: with SMTP id k9-v6mr2203391plt.185.1523974548741; Tue, 17 Apr 2018 07:15:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523974548; cv=none; d=google.com; s=arc-20160816; b=kZVGi/L2XeDYmfXU/0QuSMfDxNEs48mbmC92hvWAq7i7XZhsLnBCEdDdb+6qIpLDJQ iVzzk/ZVWE/i0PhH2ssfJbbITRo2oLNDGJSf2ytOcLTEI9F0wfcA3IZ0p2HLKyElC/PA hst8HFqKY3cG71CmRJGltD3zgHpvVwy3Ozfr1oxHhjX7xmz7tbCtHALmYgm57iecW1Wv dJEgEntEyujS88ZZ2IDW/6q/MVTB1ctv2EJVqWJn4gxJ/wL1Z9egmd5JyWjhI7qLykhB uiI4uZIDEFSML8D16b19cpwp+dbiJ3NwCBtwQi8XJYp2rorqGf9+y03wxfGG2hqedH5i 5JWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=1ISpChUKS4BcFNhvN9zJaRQV1SKgmg11B12coPkOxwM=; b=Smmg9Pbiv+7xWJYttLBckgkRpnpUNhT1RTHy2EZP2XdzXrHoMoDhBHZmEKwpAOott8 3P+p6asVyq/ZHAXb99JbxzQip/LPBELlBcowEvLy8GqbFFSronAqzJr+4CgqFE3gzXvd Mz27/896/9XGkl/4n+7ulCXaqpXDUm/vC+dz8bMfrd864duMY6827z5coBeJMiq8PAd2 DlMzz3HRqTAtWwdZVvSW5gEaX91rqbUBwlkpdeziDP/PI/W7wuxzJXEM+jGhz0hgXQ6D fxTQn8nEQK2WO0ISdNfs/uvVJIvD7J7McDZVnD2p9HTXr0MsbM/hS9FZxFKS7xSGUZyK 9auA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i2-v6si14523120plk.51.2018.04.17.07.15.33; Tue, 17 Apr 2018 07:15:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752683AbeDQONb (ORCPT + 99 others); Tue, 17 Apr 2018 10:13:31 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:57159 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751865AbeDQON3 (ORCPT ); Tue, 17 Apr 2018 10:13:29 -0400 Received: from w540.sssup.it (nat-wifi.sssup.it [193.205.81.22]) (Authenticated sender: jacopo@jmondi.org) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 1075B20000E; Tue, 17 Apr 2018 16:13:25 +0200 (CEST) From: Jacopo Mondi To: ysato@users.sourceforge.jp, dalias@libc.org Cc: Jacopo Mondi , geert@linux-m68k.org, linux-renesas-soc@vger.kernel.org, linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] sh: migor: Set DMA and DMA coherent mask Date: Tue, 17 Apr 2018 16:13:13 +0200 Message-Id: <1523974393-10870-1-git-send-email-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As of commit 205e1b7f51e4 ("dma-mapping: warn when there is no coherent_dma_mask") the Migo-R platform devices registered without a DMA mask and coherent DMA mask issue the following warning WARNING: CPU: 0 PID: 1 at ./include/linux/dma-mapping.h:516 0x40159e20 Set dma mask and coherent DMA mask for Migo-R platforms devices to 32 bits as all other SH4a platforms do. Signed-off-by: Jacopo Mondi --- arch/sh/kernel/cpu/sh4a/setup-sh7722.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c index 6b3a26e..3fe1ea7 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c @@ -7,6 +7,7 @@ * License. See the file "COPYING" in the main directory of this archive * for more details. */ +#include #include #include #include @@ -347,6 +348,8 @@ static struct platform_device vpu_device = { .name = "uio_pdrv_genirq", .id = 0, .dev = { + .dma_mask = &vpu_device.dev.coherent_dma_mask, + .coherent_dma_mask = DMA_BIT_MASK(32), .platform_data = &vpu_platform_data, }, .resource = vpu_resources, @@ -375,6 +378,8 @@ static struct platform_device veu_device = { .name = "uio_pdrv_genirq", .id = 1, .dev = { + .dma_mask = &veu_device.dev.coherent_dma_mask, + .coherent_dma_mask = DMA_BIT_MASK(32), .platform_data = &veu_platform_data, }, .resource = veu_resources, @@ -403,6 +408,8 @@ static struct platform_device jpu_device = { .name = "uio_pdrv_genirq", .id = 2, .dev = { + .dma_mask = &jpu_device.dev.coherent_dma_mask, + .coherent_dma_mask = DMA_BIT_MASK(32), .platform_data = &jpu_platform_data, }, .resource = jpu_resources, -- 2.7.4