From patchwork Mon Dec 16 08:16:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 3352211 Return-Path: X-Original-To: patchwork-linux-sh@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 E5AF8C0D4A for ; Mon, 16 Dec 2013 08:16:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D16A820375 for ; Mon, 16 Dec 2013 08:16:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9158B2035C for ; Mon, 16 Dec 2013 08:16:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752476Ab3LPIQy (ORCPT ); Mon, 16 Dec 2013 03:16:54 -0500 Received: from mail-pd0-f171.google.com ([209.85.192.171]:61425 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752305Ab3LPIQx (ORCPT ); Mon, 16 Dec 2013 03:16:53 -0500 Received: by mail-pd0-f171.google.com with SMTP id z10so5018960pdj.30 for ; Mon, 16 Dec 2013 00:16:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:message-id:from:subject:user-agent:to:cc:mime-version :content-type; bh=RK4Qa0A7y15cWceWeMqo0pLG3hy1U+wAuAvf5f67+Jc=; b=ZpCk52vkSx0d/KzSFyxma35ElDrVmrDkeHzDcd4DeKvbPfYB5AioLkCqXoUAZOatj8 QBt4H0RMKGR+FRxS8gmK59tU6GPYiQYm8nwXuMU56RurH/ZpvrbExdhPWRxWZdvyg5dq VB/LD78CgEpD0OhaTXcnvTK6nYny8TK7ZiZNM2s2UCQe936RG9OsDrpcLybMxZ98uU7b qTFjSKouKPQqn15T/K8Y+3Y9odJQ0jB5E3ghpQnQ29y5xnyV67o4zp8ymB7oNRcQ0flw GnfBBqiyisgc8gfB1Qc47s2T/JBvm7zx/U7R1UBk0K+PqvcPVspW1PYA3lqyuogIOhZK p+ng== X-Received: by 10.68.134.229 with SMTP id pn5mr18914906pbb.9.1387181813132; Mon, 16 Dec 2013 00:16:53 -0800 (PST) Received: from morimoto-Dell-XPS420.gmail.com (49.14.32.202.bf.2iij.net. [202.32.14.49]) by mx.google.com with ESMTPSA id qz9sm24364053pbc.3.2013.12.16.00.16.50 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 16 Dec 2013 00:16:52 -0800 (PST) Date: Mon, 16 Dec 2013 00:16:52 -0800 (PST) Message-ID: <87vbypyzv3.wl%kuninori.morimoto.gx@gmail.com> From: Kuninori Morimoto Subject: [PATCH] ARM: shmobile: bockw: fixup DMA mask User-Agent: Wanderlust/2.14.0 Emacs/23.3 Mule/6.0 To: Simon Cc: Magnus , linux-sh@vger.kernel.org, Kuninori Morimoto , Kuninori Morimoto MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") 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.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 From: Kuninori Morimoto 4dcfa60071b3d23f0181f27d8519f12e37cefbb9 (ARM: DMA-API: better handing of DMA masks for coherent allocations) exchanged DMA mask check method. Below warning will appear without this patch asoc-simple-card asoc-simple-card.0: \ Coherent DMA mask 0xffffffffffffffff is larger than dma_addr_t allows asoc-simple-card asoc-simple-card.0: \ Driver did not use or check the return value from dma_set_coherent_mask()? Signed-off-by: Kuninori Morimoto Acked-by: Laurent Pinchart --- arch/arm/mach-shmobile/board-bockw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c index fd9ab9f..24b4161 100644 --- a/arch/arm/mach-shmobile/board-bockw.c +++ b/arch/arm/mach-shmobile/board-bockw.c @@ -693,7 +693,7 @@ static void __init bockw_init(void) .id = i, .data = &rsnd_card_info[i], .size_data = sizeof(struct asoc_simple_card_info), - .dma_mask = ~0, + .dma_mask = DMA_BIT_MASK(32), }; platform_device_register_full(&cardinfo);