From patchwork Thu Sep 6 03:21:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 10589807 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 B624315E9 for ; Thu, 6 Sep 2018 03:21:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AEC542A6CB for ; Thu, 6 Sep 2018 03:21:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A0E0F2A6F0; Thu, 6 Sep 2018 03:21:27 +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=-2.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_DKIM_INVALID, UPPERCASE_50_75 autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B58B62A6CB for ; Thu, 6 Sep 2018 03:21:26 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 9576926777E; Thu, 6 Sep 2018 05:21:25 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 3BADD2677BB; Thu, 6 Sep 2018 05:21:23 +0200 (CEST) Received: from relmlie3.idc.renesas.com (relmlor4.renesas.com [210.160.252.174]) by alsa0.perex.cz (Postfix) with ESMTP id 5C2B226777E for ; Thu, 6 Sep 2018 05:21:19 +0200 (CEST) Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie3.idc.renesas.com with ESMTP; 06 Sep 2018 12:21:17 +0900 Received: from relmlii2.idc.renesas.com (relmlii2.idc.renesas.com [10.200.68.66]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id 02F8B51739; Thu, 6 Sep 2018 12:21:18 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.53,334,1531753200"; d="scan'208";a="291688804" Received: from mail-os2jpn01lp0147.outbound.protection.outlook.com (HELO JPN01-OS2-obe.outbound.protection.outlook.com) ([23.103.139.147]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 06 Sep 2018 12:21:17 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oBVieR8jZ+Y1TAouTpjZ/M9UggaKDsHpxlRQvJ2lcHM=; b=R0IYC6YKlx1mz1Y1S1op2X6h/AZuXPLT8SXcs9OyyTc454QKROJZlNqCr85sMinqHkR+uO58IuHkypcek1TjIAuIQIeWnyHse5VnYApbMfpVyNpv0h9BJ+MwZvcqViA8l10zghhC4bwjT5wF5oe0ZjNP9Sa0UqHvwXkM/dLSaho= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.130) by OSAPR01MB1858.jpnprd01.prod.outlook.com (2603:1096:603:2d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1101.18; Thu, 6 Sep 2018 03:21:16 +0000 Message-ID: <871sa7b9me.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto User-Agent: Wanderlust/2.15.9 Emacs/24.5 Mule/6.0 To: Mark Brown In-Reply-To: <8736unb9nj.wl-kuninori.morimoto.gx@renesas.com> References: <8736unb9nj.wl-kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Thu, 6 Sep 2018 03:21:16 +0000 X-Originating-IP: [211.11.155.130] X-ClientProxiedBy: TYAPR01CA0151.jpnprd01.prod.outlook.com (2603:1096:404:7e::19) To OSAPR01MB1858.jpnprd01.prod.outlook.com (2603:1096:603:2d::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 75f75591-0836-40dc-c2c2-08d613a7ce73 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:OSAPR01MB1858; X-Microsoft-Exchange-Diagnostics: 1; OSAPR01MB1858; 3:CBYo+KLDkxWsL3mAWAb3qE94Ss5rFvU/o4Uub4HJI5WmXuoigdQDetMJdY85sZjLcq+Eap5RCitDsvM2t8dFVeADJRmZ1FXJ352oGbtqs4Q1SLwuJRYgHHASd3NpugFRIkz9p7WDObjrSeyxJ/zl31yrMj0PSHU7Go4vmww0X+Fs0XGK4rBD7gH9TFBMLECO/DNiQU6E++58IRRXOj9V2ZBfZGsbP5x+TFdRN+tVinCjO7IdlwP3ySgPzg+J1t3C; 25:kDQYTAAcgKxmEsYQX9jAaWKEYjXb6vhgWJLHshDRUlQ9g2Q0fAm8C6BnNRSgvitKzao/o3Oh4sfbTzide9/LTc0472oiCoNTGW/g0zoyuvhbcfyuZ4hgi2/Rgmejlaj8u+Ewq7WbyQ7gR0t3QKIv5+PixTQKBnHY+q5mFuD72tmkpJCRXLpAgr5PKVd9qrU8cyAa6WnBtMYunCCJnLlJB+98rim71YsEHns40XPYoXi+d0LycCsqFrMJdW60Mu/2bjiM/RucUXc8E9gqYF67D49T/15bqtswY15kCClIT2NZET3lL2+DBLIfMlU09mr2VGz+Auw3Tcq9knBmASNvZA==; 31:nrkC1OKvse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Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(3231311)(944501410)(52105095)(10201501046)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699016); SRVR:OSAPR01MB1858; BCL:0; PCL:0; RULEID:; SRVR:OSAPR01MB1858; X-Forefront-PRVS: 0787459938 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(346002)(376002)(396003)(136003)(39860400002)(366004)(189003)(199004)(956004)(76176011)(36756003)(186003)(69596002)(5660300001)(6486002)(4326008)(305945005)(7736002)(478600001)(66066001)(26005)(2906002)(68736007)(58126008)(16526019)(316002)(16586007)(81166006)(81156014)(53416004)(23726003)(25786009)(8936002)(8676002)(6116002)(3846002)(7696005)(52116002)(47776003)(11346002)(446003)(486006)(53936002)(476003)(2616005)(386003)(86362001)(97736004)(50466002)(105586002)(6916009)(106356001)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:OSAPR01MB1858; H:morimoto-PC.renesas.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: renesas.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; OSAPR01MB1858; 23:jWAlGKBPUqH6SHTfqDgOuTkGFtr1mhTR/Wt3pHjTX?= Ud24RltMGrzuy8wRAtdcbLfLeAeD8B+UmiIkgsiw3/Qoqj8r27LAoagnveUOyTotk0D0z/rhwhHUL++lGMO8sHhWjiflXslmKZK89kaTgyPnPvq68fkb+/dnAv5maLFnDtVpVBdGOIKCngukAyVJJTDfeH5Y7dLrYDFD9XBn9gjCI2p+tSXB44Bamx5TYURM8FkG1K0wyxH2MonR2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VzJiCWf/vUaeiFN4ykB5potmApanMhK/o5n10RmiBflOfDO72VaYxtdplo9Ir/FVOPo/+iX/5yDR5rFT1JbqYLUJaIS7zFoPGFpMFvRtT83IfoYUbw2I21 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; OSAPR01MB1858; 20:b15RDF5FPGDk1bHhZMS5PP8H6Qyy0W6WddKd8+7v7c+GUoIzaCZBID6P/NmPWmw6/z5+X18cuuJ5Ts7CV9N9dsWK9UgIjf8dbl9SG7+koX2kEokFyG4+0kjkteeQAzN1zBJozsdQ2ftCzwYke4Ts2m1Q+dXfbx2ca2iTP+j6a7k= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2018 03:21:16.2881 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 75f75591-0836-40dc-c2c2-08d613a7ce73 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSAPR01MB1858 Cc: Linux-ALSA Subject: [alsa-devel] [PATCH 1/4] ASoC: rsnd: gen: use tab instead of white-space X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kuninori Morimoto commit 8c9d75033340 ("ASoC: rsnd: ssiu: Support BUSIF other than BUSIF0") added new SSIU registers. But it is using white-space for it. This patch fixup it to use tab. Signed-off-by: Kuninori Morimoto --- sound/soc/sh/rcar/gen.c | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/sound/soc/sh/rcar/gen.c b/sound/soc/sh/rcar/gen.c index 3032869..1f7881cc 100644 --- a/sound/soc/sh/rcar/gen.c +++ b/sound/soc/sh/rcar/gen.c @@ -222,30 +222,30 @@ static int rsnd_gen2_probe(struct rsnd_priv *priv) RSND_GEN_M_REG(SSI_BUSIF0_MODE, 0x0, 0x80), RSND_GEN_M_REG(SSI_BUSIF0_ADINR, 0x4, 0x80), RSND_GEN_M_REG(SSI_BUSIF0_DALIGN, 0x8, 0x80), - RSND_GEN_M_REG(SSI_BUSIF1_MODE, 0x20, 0x80), - RSND_GEN_M_REG(SSI_BUSIF1_ADINR, 0x24, 0x80), - RSND_GEN_M_REG(SSI_BUSIF1_DALIGN, 0x28, 0x80), - RSND_GEN_M_REG(SSI_BUSIF2_MODE, 0x40, 0x80), - RSND_GEN_M_REG(SSI_BUSIF2_ADINR, 0x44, 0x80), - RSND_GEN_M_REG(SSI_BUSIF2_DALIGN, 0x48, 0x80), - RSND_GEN_M_REG(SSI_BUSIF3_MODE, 0x60, 0x80), - RSND_GEN_M_REG(SSI_BUSIF3_ADINR, 0x64, 0x80), - RSND_GEN_M_REG(SSI_BUSIF3_DALIGN, 0x68, 0x80), - RSND_GEN_M_REG(SSI_BUSIF4_MODE, 0x500, 0x80), - RSND_GEN_M_REG(SSI_BUSIF4_ADINR, 0x504, 0x80), - RSND_GEN_M_REG(SSI_BUSIF4_DALIGN, 0x508, 0x80), - RSND_GEN_M_REG(SSI_BUSIF5_MODE, 0x520, 0x80), - RSND_GEN_M_REG(SSI_BUSIF5_ADINR, 0x524, 0x80), - RSND_GEN_M_REG(SSI_BUSIF5_DALIGN, 0x528, 0x80), - RSND_GEN_M_REG(SSI_BUSIF6_MODE, 0x540, 0x80), - RSND_GEN_M_REG(SSI_BUSIF6_ADINR, 0x544, 0x80), - RSND_GEN_M_REG(SSI_BUSIF6_DALIGN, 0x548, 0x80), - RSND_GEN_M_REG(SSI_BUSIF7_MODE, 0x560, 0x80), - RSND_GEN_M_REG(SSI_BUSIF7_ADINR, 0x564, 0x80), - RSND_GEN_M_REG(SSI_BUSIF7_DALIGN, 0x568, 0x80), - RSND_GEN_M_REG(SSI_MODE, 0xc, 0x80), - RSND_GEN_M_REG(SSI_CTRL, 0x10, 0x80), - RSND_GEN_M_REG(SSI_INT_ENABLE, 0x18, 0x80), + RSND_GEN_M_REG(SSI_BUSIF1_MODE, 0x20, 0x80), + RSND_GEN_M_REG(SSI_BUSIF1_ADINR, 0x24, 0x80), + RSND_GEN_M_REG(SSI_BUSIF1_DALIGN, 0x28, 0x80), + RSND_GEN_M_REG(SSI_BUSIF2_MODE, 0x40, 0x80), + RSND_GEN_M_REG(SSI_BUSIF2_ADINR, 0x44, 0x80), + RSND_GEN_M_REG(SSI_BUSIF2_DALIGN, 0x48, 0x80), + RSND_GEN_M_REG(SSI_BUSIF3_MODE, 0x60, 0x80), + RSND_GEN_M_REG(SSI_BUSIF3_ADINR, 0x64, 0x80), + RSND_GEN_M_REG(SSI_BUSIF3_DALIGN, 0x68, 0x80), + RSND_GEN_M_REG(SSI_BUSIF4_MODE, 0x500, 0x80), + RSND_GEN_M_REG(SSI_BUSIF4_ADINR, 0x504, 0x80), + RSND_GEN_M_REG(SSI_BUSIF4_DALIGN, 0x508, 0x80), + RSND_GEN_M_REG(SSI_BUSIF5_MODE, 0x520, 0x80), + RSND_GEN_M_REG(SSI_BUSIF5_ADINR, 0x524, 0x80), + RSND_GEN_M_REG(SSI_BUSIF5_DALIGN, 0x528, 0x80), + RSND_GEN_M_REG(SSI_BUSIF6_MODE, 0x540, 0x80), + RSND_GEN_M_REG(SSI_BUSIF6_ADINR, 0x544, 0x80), + RSND_GEN_M_REG(SSI_BUSIF6_DALIGN, 0x548, 0x80), + RSND_GEN_M_REG(SSI_BUSIF7_MODE, 0x560, 0x80), + RSND_GEN_M_REG(SSI_BUSIF7_ADINR, 0x564, 0x80), + RSND_GEN_M_REG(SSI_BUSIF7_DALIGN, 0x568, 0x80), + RSND_GEN_M_REG(SSI_MODE, 0xc, 0x80), + RSND_GEN_M_REG(SSI_CTRL, 0x10, 0x80), + RSND_GEN_M_REG(SSI_INT_ENABLE, 0x18, 0x80), }; static const struct rsnd_regmap_field_conf conf_scu[] = { From patchwork Thu Sep 6 03:21:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 10589809 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 E7B17157A for ; Thu, 6 Sep 2018 03:21:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E1A482A6CB for ; Thu, 6 Sep 2018 03:21:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D3D4B2A6F0; Thu, 6 Sep 2018 03:21:42 +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=-2.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 356232A6CB for ; Thu, 6 Sep 2018 03:21:42 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id F18A8267812; Thu, 6 Sep 2018 05:21:40 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id AE000267815; Thu, 6 Sep 2018 05:21:38 +0200 (CEST) Received: from relmlie2.idc.renesas.com (relmlor3.renesas.com [210.160.252.173]) by alsa0.perex.cz (Postfix) with ESMTP id D774F26779A for ; Thu, 6 Sep 2018 05:21:35 +0200 (CEST) Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie2.idc.renesas.com with ESMTP; 06 Sep 2018 12:21:34 +0900 Received: from relmlii1.idc.renesas.com (relmlii1.idc.renesas.com [10.200.68.65]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id 4287D6DEE4; Thu, 6 Sep 2018 12:21:34 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.53,334,1531753200"; d="scan'208";a="290134208" Received: from mail-ty1jpn01lp0177.outbound.protection.outlook.com (HELO JPN01-TY1-obe.outbound.protection.outlook.com) ([23.103.139.177]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 06 Sep 2018 12:21:34 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ox3PzEdAd5CYjrwXx/VVzomgIZjTeAVJ5njgNe5YL7A=; b=J1nTSiH8uIRHWaS3P5enxk8tEwCv3Dc2sJgs6NNjMdL81pcTR9OG/RafeLTWdKqNxqAwq5ueNYn5Fj0zfPS3NssMSJjR1XMMGEAyF28PyDobmd4YBWTx7ejQ1KRXTPFlqz9mOzytqJp1dIPqqT3GlJ6oxg6Q7z/wzOcJWf7QESE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.130) by TYXPR01MB1872.jpnprd01.prod.outlook.com (2603:1096:403:12::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1101.16; Thu, 6 Sep 2018 03:21:33 +0000 Message-ID: <87zhwv9v1f.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto User-Agent: Wanderlust/2.15.9 Emacs/24.5 Mule/6.0 To: Mark Brown In-Reply-To: <8736unb9nj.wl-kuninori.morimoto.gx@renesas.com> References: <8736unb9nj.wl-kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Thu, 6 Sep 2018 03:21:33 +0000 X-Originating-IP: [211.11.155.130] X-ClientProxiedBy: OSAPR01CA0039.jpnprd01.prod.outlook.com (2603:1096:603:14::27) To TYXPR01MB1872.jpnprd01.prod.outlook.com (2603:1096:403:12::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7b2cff22-31a0-4fdd-d182-08d613a7d8c8 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:TYXPR01MB1872; X-Microsoft-Exchange-Diagnostics: 1; TYXPR01MB1872; 3:h5d0EMfiWmkoLvqG7jRiuH1QPF5r/jsdu3ETFwqPcybERQJJQbofRUcNPgKfxEh7hU7YOjVdvfn4Ahe69x39aVdEtKO6uhHwySV0CV74D2iZKf3Cf2cJQMWGloeYjsY2zFfk7xRwPVBraH2GX4870unqigmBTNyRAqmyVJ2aSg5gyT9tlJEnw4OHAp4gaH6dAAL4q92C9cEQqONpiHFKHzAuwcPMKR7axCtyExng6ykCepBBQwxf/w+7Jk42rFfp; 25:2i8ntK22l1C3OBRwWtPrnWC6/7n2lj7TyToVvJVEKGWsEUJTqzHoW4z8f9nuWxK0HZVaA1HlhwjbkIeL6nWaNzeHQDWKE0y8OdW2NodSGBjDz5YsFXfcpw3A+BfESNWij+jlUbQumhwyYv0u/w61Y0fW+63yia9gCy6/bpKuZ0hZWTt4qmppcgk+hOvZM4FK14qQ6g9ns7ehuMnzkHxsDxq4tYftdUL47WojnY6aRsJxrC1QeZXTIOLHoPnZn0IgxC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InTUOTjw+zMHvJFH9YlGrUJR3r5CqR7va0rTA0NezE4x4UDhaqLUWs+gC+Xu/SnDixghlZ4vjgrd/WDN3Lic6jqNOvPbvabXtUH99Irsa6QTfA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231311)(944501410)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(201708071742011)(7699016); SRVR:TYXPR01MB1872; BCL:0; PCL:0; RULEID:; SRVR:TYXPR01MB1872; X-Forefront-PRVS: 0787459938 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(366004)(136003)(376002)(346002)(39860400002)(396003)(189003)(199004)(58126008)(25786009)(3846002)(305945005)(5660300001)(16526019)(186003)(6486002)(16586007)(2906002)(81166006)(81156014)(47776003)(8676002)(69596002)(66066001)(6916009)(7736002)(68736007)(52116002)(8936002)(4326008)(316002)(7696005)(76176011)(106356001)(86362001)(105586002)(53416004)(26005)(386003)(446003)(476003)(486006)(6116002)(50466002)(97736004)(11346002)(956004)(2616005)(53936002)(36756003)(478600001)(23726003)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:TYXPR01MB1872; H:morimoto-PC.renesas.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: renesas.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; TYXPR01MB1872; 23:YThi+zN4u1SXMUelI8cBHpKHtv6GN71gmY8sMKCXd?= Mup3EzzyjgEUgCaVlgdgqOLiumeoEuTU4vD/JSBmIYpgYfBsrMCHJp9Bv4RLEVVqMUF0lLgR/VCTymctzkkde5rDGrNHpm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egNYBS7vL5b65jDLoyHSvLm3dmUTdLIt0x2f7dmvIW1ONmsneX4XRQs0NA9XPVFpRITkH1hRVgDEA12e7vMdCL/Oh9+QYKgQ4lJUTQiHoj7c4yGAYicm1HqCikJKCbk7bMKDvG9MTW0MA1MqB0uRhZrUvctsMYyJ60LJIW1X1Gp5irtoZFxg/TR8QvJFn9eOqOzVDISyyip7KpvTg6VtiHZNlHwPtuw0sdsB+XxJVuihdS SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; TYXPR01MB1872; 20:CdsFNxXYBzKtLWYy4FCtOqNg7LBhGo/UVuevHrySbg7GUm5zShz5sa+muaCV0N7JjMLmihkrxrTiSZhs9+YHC1wXQB2AviOUxEUI4aKyrXjd4fLJWtKDhYUx8odYIqKDVTerdRU39NjKLKVl9AtMeCpA2QAJp5rgDB0VQzlrTQw= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2018 03:21:33.6072 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7b2cff22-31a0-4fdd-d182-08d613a7d8c8 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYXPR01MB1872 Cc: Linux-ALSA Subject: [alsa-devel] [PATCH 2/4] ASoC: rsnd: adg: care clock-frequency size X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kuninori Morimoto ADG has buffer over flow bug if DT has more than 3 clock-frequency. This patch fixup this issue, and uses first 2 values. clock-frequency = ; /* this is OK */ clock-frequency = ; /* this is NG */ Signed-off-by: Kuninori Morimoto Tested-by: Hiroyuki Yokoyama --- sound/soc/sh/rcar/adg.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sound/soc/sh/rcar/adg.c b/sound/soc/sh/rcar/adg.c index 3a3064d..051f964 100644 --- a/sound/soc/sh/rcar/adg.c +++ b/sound/soc/sh/rcar/adg.c @@ -462,6 +462,11 @@ static void rsnd_adg_get_clkout(struct rsnd_priv *priv, goto rsnd_adg_get_clkout_end; req_size = prop->length / sizeof(u32); + if (req_size > REQ_SIZE) { + dev_err(dev, + "too many clock-frequency, use top %d\n", REQ_SIZE); + req_size = REQ_SIZE; + } of_property_read_u32_array(np, "clock-frequency", req_rate, req_size); req_48kHz_rate = 0; From patchwork Thu Sep 6 03:21:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 10589811 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 40AAC157A for ; Thu, 6 Sep 2018 03:21:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3BDB52A6CB for ; Thu, 6 Sep 2018 03:21:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2FC402A6F0; Thu, 6 Sep 2018 03:21:56 +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=-2.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 767002A6CB for ; Thu, 6 Sep 2018 03:21:55 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 5C6B826779A; Thu, 6 Sep 2018 05:21:54 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 2683026781F; Thu, 6 Sep 2018 05:21:52 +0200 (CEST) Received: from relmlie2.idc.renesas.com (relmlor3.renesas.com [210.160.252.173]) by alsa0.perex.cz (Postfix) with ESMTP id 4D68E267657 for ; Thu, 6 Sep 2018 05:21:48 +0200 (CEST) Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie2.idc.renesas.com with ESMTP; 06 Sep 2018 12:21:47 +0900 Received: from relmlii2.idc.renesas.com (relmlii2.idc.renesas.com [10.200.68.66]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id B4862517CA; Thu, 6 Sep 2018 12:21:47 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.53,334,1531753200"; d="scan'208";a="291688834" Received: from mail-ty1jpn01lp0179.outbound.protection.outlook.com (HELO JPN01-TY1-obe.outbound.protection.outlook.com) ([23.103.139.179]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 06 Sep 2018 12:21:47 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=L3WzsyiCcRSpb4MU9hLyrJgEvXkOVdbngFejoGT1WL8=; b=C3j8+3smAV/ZG7yyATjAl3Xnyzeh/ztxS774GExCvMhlpreEx9JfwJwdQbeGdLQSvEHH8Q0tDuWX94lnDn8I5y8QqY/hm8HoQXdYGRrBi7ypImgwE6QUCL4nk4MLv6qttzuFC+WGIP+nPhN2B6r5BUQ1sXIQHHTO6YtEgqwYdqI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.130) by TYXPR01MB1872.jpnprd01.prod.outlook.com (2603:1096:403:12::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1101.16; Thu, 6 Sep 2018 03:21:47 +0000 Message-ID: <87y3cf9v11.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto User-Agent: Wanderlust/2.15.9 Emacs/24.5 Mule/6.0 To: Mark Brown In-Reply-To: <8736unb9nj.wl-kuninori.morimoto.gx@renesas.com> References: <8736unb9nj.wl-kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Thu, 6 Sep 2018 03:21:47 +0000 X-Originating-IP: [211.11.155.130] X-ClientProxiedBy: TYAPR01CA0102.jpnprd01.prod.outlook.com (2603:1096:404:2a::18) To TYXPR01MB1872.jpnprd01.prod.outlook.com (2603:1096:403:12::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d30893e7-6f49-42dd-2690-08d613a7e0d7 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:TYXPR01MB1872; X-Microsoft-Exchange-Diagnostics: 1; TYXPR01MB1872; 3:ufgym6KD7zy+hsSmDyrq1B+HeJ175VUgUK1p+V1SJSIsXUuhyIQlZDYvZ/v1gltmchrYyfJ+jbpsRoywsgc8IaZdT0lEz49rm04UV5WuiCmpSebEHqs/6tRJWNV5QkQJv2SfmdhScrYK7SSRbP54AKsoZvhapjbM4m5Gj2Bbvzu3Y9F+Ewr7KA9LYqLu0nNJX9bYEEF1M55n7UxYWBHS2U1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xBvtPe1NWdJDcLxA3GrU/Y7G8/G6DOt5UzKX5uXxgrP/8RFptRh9XMcfIECN2yXHUnkJzFEgwOUpc5UJV3pKwyvXEkAyQQAhexnsLe9w1yaCiXo6UZIjoDhfWAx8WCvsoczoUPhTAa; 4:Yx947ACFa5LdLITLGiyObz9NONTg0iJ8k9tFAYOrE1WilC1myPE9cqVClRKaevICGF21v7wnz+rBkVyIsE9B5BDgU7yWMxitj7ksdOtU1HXpJzSEoQG0Nl9o6qeuH+MUQGD85WAsQNyVEWi3wppw0P7JYB4SK+Nqp98cE1XwrTZo+uEmb5B9kSniry4fqd8dS5Bry1IjHh7uUrJi0BZCKHNPcrhbWkD4p1xoHAwi1923qhrEkd7gUPeXCizp1uvxXr7zorA3mO0fzGzdUKquUw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231311)(944501410)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(201708071742011)(7699016); SRVR:TYXPR01MB1872; BCL:0; PCL:0; RULEID:; SRVR:TYXPR01MB1872; X-Forefront-PRVS: 0787459938 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(366004)(136003)(376002)(346002)(39860400002)(396003)(189003)(199004)(58126008)(25786009)(3846002)(305945005)(5660300001)(14444005)(5024004)(16526019)(186003)(6486002)(16586007)(2906002)(81166006)(81156014)(47776003)(8676002)(69596002)(66066001)(6916009)(7736002)(68736007)(52116002)(8936002)(4326008)(316002)(7696005)(76176011)(106356001)(575784001)(86362001)(105586002)(53416004)(26005)(386003)(446003)(476003)(486006)(6116002)(50466002)(97736004)(11346002)(956004)(2616005)(53936002)(36756003)(478600001)(23726003)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:TYXPR01MB1872; H:morimoto-PC.renesas.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: renesas.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; TYXPR01MB1872; 23:siDWLCjd8JBcztW6cooNjsgOALco6IIxGB9sLeh1/?= Ysc3Maixyaxbzv3tYts2fPgcUhXRPHEfb7RYIi+pYtLnGBPIuxGPEqMwHeLU8msA9aGiuVMhtMYc+4zxw47SFTXA8kycw2XSswRi/qprKfokYZqd4DSi7sCWc6J4E86DXm1QNX2tyXTV5/VfUl3OhlMMTrFxBcamaXAkZdZsraN1v+MwGGK6wxGcII2NKafB7ZqxbRT1SRMMvDIXMaiCCp6ov3j3BIaHBT7CPZFGUTU0cGwEvcpoyMv804YM0RO+6WF6Crxlc7p+rg0JEFqLgyCqlITVmp14d1VJbzz+GLk9ZLnWbkDhYHg+MitygqIn0CYGxqfAE1rHDfpvycSy9JmHtglpRljRjknCBVgcZ5RPpw0QkHksQYhTd6GtjMWK4sef3vNxtU72Lw4oBFH4gbRMW1X2fCFBvK4XaSaJCtpEemgKhzifntf/gu2UxGCZD2+aLUU28HoWvM+NaHaryQnxFhwSkqcRyQR6GSyDNnFPnyhgfUU9VbMQ85E+l5CNv0SKHSNEygsO39p6JfIdkLjFpNwP2VsZORVNCKZIylBR7j+Pb3UzcTDTUV4QQKxxlGtxqJQxkMygZtXCGZUeLUctS4tIJwKFDzM45zm2Z94QD/XTW/3t/QwFMoJXmrU1KwYoQ47FxjCpDTSOJYUKclmDiXhdOz1iV4QTOLFYsF7o1/YbbEiA65yzMvl+xVZjLfdWmn5Vt3GvR1S9R9RP7Cdi7CBz7j77AgiSWHZoQ/l33exDpzzNyvShrXUNkKcVmSq4uQEOTAfG8c0hFldgpj061xmsrK/HvLVs5dTmCFgjjx48VSz9TWWt6ctx6mjInBKJ2lxvOTzgoYB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z+teBa1F7wTDMTx3ez+hAnspHtPdi6jMslZQ0JWqj/TXMhZiuKElZhQOZFIqPBs8ux94OZplDHlXrnwrRuzICFEjLbaA8Hi/24wPVG6W6tb+rRqG5R8II1CE1V8I0G5iHEuEv3KyDipygGFTYnacbCZnuhtItADfz1bJzm9+5ZF/bjPMR8ybXRdJmOEDct/RKyfWg==; 5:j9t26iJvqunJXP6bTVrq4SklPg4tXsYDmx4z8Y5jiDoAoLfS+Hq4TA4jxROSDVooJdCDCsUkRoh93qCF2akRAeTAvGOqfVPW3wH91l8/xfKFeF97emwKZCClYuyMir+K6gBN7TleVyzP9q0KSRRGcyATNKMFzPLKnJ3JJCET3XU=; 7:+WKwWhXwwwhBb5EH39BD/14Ie691p9GTQ7oZYRo0kdsG8vBUdhyd34+Bs1Wo51JRGhpMh2GNU0ca87/8+On+Gbb46QqBNR1XASop9G4IFmilYqGCkJt8P6wK2Pw4Xqelf1m6r0vXRZYdERvAFgf/uUaefcmx/NWnXR7RPay+rGH9Qs5DdMxvSaqXA3JDcVjRH1NPgpvDoO0LTzm91RLcR72uR4J6G+cE/0FvTqeFqGAdtiEf2Eo4IceFr4aAJtBs SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; TYXPR01MB1872; 20:E9hsHK4Qs8JhEuAJTRMhEeGgRHKKk79m/EinXvRRM2/R41o17KkbXqZIhOR7juTq5m82VVwwiOco3ZtytIoR0J2k7ma4w6xMxfixa+yE6cOtkBTc3O8DIB87KjKc3GqhuwMaBWRkZ82uamoOIynpJkNemtSR8rlzL7VdIBRSFhk= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2018 03:21:47.1697 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d30893e7-6f49-42dd-2690-08d613a7e0d7 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYXPR01MB1872 Cc: Linux-ALSA Subject: [alsa-devel] [PATCH 3/4] ASoC: rsnd: don't fallback to PIO mode when -EPROBE_DEFER X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kuninori Morimoto Current rsnd driver will fallback to PIO mode if it can't get DMA handler. But, DMA might return -EPROBE_DEFER when probe timing. This driver always fallback to PIO mode especially from commit ac6bbf0cdf4206c ("iommu: Remove IOMMU_OF_DECLARE") because of this reason. The DMA driver will be probed later, but sound driver might be probed as PIO mode in such case. This patch fixup this issue. Then, -EPROBE_DEFER is not error. Thus, let's don't indicate error message in such case. And it needs to call rsnd_adg_remove() individually if probe failed, because it registers clk which should be unregister. Maybe PIO fallback feature itself is not needed, but let's keep it so far. Signed-off-by: Kuninori Morimoto --- sound/soc/sh/rcar/core.c | 10 +++++++++- sound/soc/sh/rcar/dma.c | 4 ++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index e46415c..40d7dc4 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c @@ -482,7 +482,7 @@ static int rsnd_status_update(u32 *status, (func_call && (mod)->ops->fn) ? #fn : ""); \ if (func_call && (mod)->ops->fn) \ tmp = (mod)->ops->fn(mod, io, param); \ - if (tmp) \ + if (tmp && (tmp != -EPROBE_DEFER)) \ dev_err(dev, "%s[%d] : %s error %d\n", \ rsnd_mod_name(mod), rsnd_mod_id(mod), \ #fn, tmp); \ @@ -1557,6 +1557,14 @@ static int rsnd_probe(struct platform_device *pdev) rsnd_dai_call(remove, &rdai->capture, priv); } + /* + * adg is very special mod which can't use rsnd_dai_call(remove), + * and it registers ADG clock on probe. + * It should be unregister if probe failed. + * Mainly it is assuming -EPROBE_DEFER case + */ + rsnd_adg_remove(priv); + return ret; } diff --git a/sound/soc/sh/rcar/dma.c b/sound/soc/sh/rcar/dma.c index f99c1ab..b5f3bf8 100644 --- a/sound/soc/sh/rcar/dma.c +++ b/sound/soc/sh/rcar/dma.c @@ -241,6 +241,10 @@ static int rsnd_dmaen_attach(struct rsnd_dai_stream *io, /* try to get DMAEngine channel */ chan = rsnd_dmaen_request_channel(io, mod_from, mod_to); if (IS_ERR_OR_NULL(chan)) { + /* Let's follow when -EPROBE_DEFER case */ + if (PTR_ERR(chan) == -EPROBE_DEFER) + return PTR_ERR(chan); + /* * DMA failed. try to PIO mode * see From patchwork Thu Sep 6 03:22:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 10589813 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 55848157A for ; Thu, 6 Sep 2018 03:22:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4DA7D2A6D9 for ; Thu, 6 Sep 2018 03:22:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3FD932A6FA; Thu, 6 Sep 2018 03:22:11 +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=-2.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5B1232A6D9 for ; Thu, 6 Sep 2018 03:22:10 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 4432C267815; Thu, 6 Sep 2018 05:22:09 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id C4498267830; Thu, 6 Sep 2018 05:22:06 +0200 (CEST) Received: from relmlie3.idc.renesas.com (relmlor4.renesas.com [210.160.252.174]) by alsa0.perex.cz (Postfix) with ESMTP id 1B610267815 for ; Thu, 6 Sep 2018 05:22:03 +0200 (CEST) Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie3.idc.renesas.com with ESMTP; 06 Sep 2018 12:22:02 +0900 Received: from relmlii1.idc.renesas.com (relmlii1.idc.renesas.com [10.200.68.65]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id A835978BFC; Thu, 6 Sep 2018 12:22:02 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.53,334,1531753200"; d="scan'208";a="290134238" Received: from mail-ty1jpn01lp0175.outbound.protection.outlook.com (HELO JPN01-TY1-obe.outbound.protection.outlook.com) ([23.103.139.175]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 06 Sep 2018 12:22:02 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sq/7kqQ720L4XnmWkao7a7jAs/JbUVQ1Xmsiy1DBUX0=; b=XQ08Yc0kF3XO+smbZSAjqEnknAzANFQeEOXHaWZplIDOjaoH34kZLRNz/ImegEEcZbiw8c/Z6nr3gOv+ThRzMBBSgm+j6N9K+B1KEVbv+pgdOhnEKtGQeM1FyFFSEw3aJ2facc5d1Jr0C/aChbCgF4CRj90WF5zi7fQr1QctVxs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.130) by OSBPR01MB1864.jpnprd01.prod.outlook.com (2603:1096:603:2::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1101.14; Thu, 6 Sep 2018 03:22:01 +0000 Message-ID: <87worz9v0o.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto User-Agent: Wanderlust/2.15.9 Emacs/24.5 Mule/6.0 To: Mark Brown In-Reply-To: <8736unb9nj.wl-kuninori.morimoto.gx@renesas.com> References: <8736unb9nj.wl-kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Thu, 6 Sep 2018 03:22:01 +0000 X-Originating-IP: [211.11.155.130] X-ClientProxiedBy: OSAPR01CA0151.jpnprd01.prod.outlook.com (2603:1096:604:d::19) To OSBPR01MB1864.jpnprd01.prod.outlook.com (2603:1096:603:2::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6f25a056-2b2b-44fa-f34f-08d613a7e98d X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:OSBPR01MB1864; X-Microsoft-Exchange-Diagnostics: 1; OSBPR01MB1864; 3:Ki1AjIePuFvQU+wWjuj/fkMFhoYLmaInl+GJXDZGnwU/ikryhpHMIT9hflN2X5lfKy/zDvrJwUwWJmbpWw67VKnlFCHBh5uMsHyh6EhQ3zHgKNSNNZvOHxXIj9QemZqrHBvfVjXiJEncCz9XJ0gVF9qvHXYDGiYwuzPpteg9GRJ/E5+YFKDG1FGamsCsBNljnaPGe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Fm1R7T6/e+VXOm2A9WSzRt6WBUzwUN9vtQkmO7pJ47G3WbZ4j7LHTmkTFZ73wPo3K8VWp/jhQi90scoRTAPnb5dRm75Ihm89832nv5KkbB/cun8nJvEO3jKwstOcPjRijkZlnou6jLePqjPAwU1/5; 4:sDXNpk6yAymufmarlT0yaA5om1y55OWp6p5Y16hzIG8uLCdRgAa66Gr6G4WwhjYUEoq7Y/gRKOJFAZyrUGikkYj/LuTALNekznbuKahXGzKXD+oeLkF5FJIzy20gVvzdHjJRTtr50v8OiuoXufOROJJZxw2YohpKUHloDe6RJb/mPl0Qjk4SNMdRRdNxlfQ8pBAOcrf9lGmFBlVIIKPyn6KeXynWJj+cRo3GBT+nMg5xOdwJl+cOVr3bs+OlwuEGBddYLNwz0IHrbT1iKyzDNw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231344)(944501410)(52105095)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699016); SRVR:OSBPR01MB1864; BCL:0; PCL:0; RULEID:; SRVR:OSBPR01MB1864; X-Forefront-PRVS: 0787459938 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(979002)(346002)(376002)(39860400002)(366004)(396003)(136003)(199004)(189003)(53936002)(97736004)(81156014)(81166006)(50466002)(5660300001)(8676002)(2906002)(6116002)(3846002)(8936002)(6486002)(23726003)(6916009)(36756003)(7696005)(47776003)(66066001)(76176011)(25786009)(52116002)(7736002)(86362001)(305945005)(4326008)(69596002)(446003)(476003)(11346002)(16586007)(26005)(58126008)(316002)(105586002)(106356001)(386003)(956004)(486006)(53416004)(2616005)(478600001)(16526019)(186003)(68736007)(16060500001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1102; SCL:1; SRVR:OSBPR01MB1864; H:morimoto-PC.renesas.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: renesas.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; OSBPR01MB1864; 23:9vbjKHq2BU8zWkrK4rYr3iJImPIRPxXyVy1b4SQw9?= UaagbnA9FJbxgaxAkDDlmvpFt2WPdi4xlXDApjJB3P51S+8J/qALs/V++sWEtWFtyFdq+CT+Jrlj+ZBOsW3phrw40JnGBzzxLCWerxgIZ8wgaqpZGd4NGgvFY3tOfOe257nBDmyLh9/TwdFnVwitsnJ6H84J42i7/B2yFgKgs08r3J2Unjgq2DZc2pWi6vOf4qYZltT4yOy5w0l6li1hcvoVc1rVzzc1lSxNh7h9SWnjF9aXNYYSXe1XP75DfVzcqNHVqMdKqcfr1V84G8i4vF78D7v4N+WLtTRD5unFSklIykDoCjgDYkiaRZK1e7ztJzhMy5qF4cdttFBPZHBw4ViXvGMW2rwA7ygzcGrHaF+IziQimq82SmnAP3WwNuz+Njlg8e9USe3+Ad6lZNLN6G76POfqwye5Wh8tlz72EB5M3opXqcBjDlIxzFdeE6KHE5tqm/O5DxxS1gT0a5NHLVVcVVXUoeqwmJDcMXDiPByEL2pZOxbFpi7F8KFRc7OqrKSgR7DT9OC2Sb/kgGYtmmHCwuyVFCwjnPPkclK1nCpuslCnkAs7jtv8F+JuGxWCHD2nGpBdWCWiKY2meen9Q1O0Z4gD4tFsw3NveKSG5zfuKucnwHnmc7I+bnUAsv6WMazKYShg7GCkhv6T/0fjlEID3OqHk6QcjxwV2HO1/QkalJq8/QrXt+HsjHtQVR7Zft7T0zBgungkX0Yf0ZviiXbkBtsWaMZdJGfA4eGqlK+8LXIENhgXr7JDSM+4rX8oPNHx2km6JUWM1dLa7S4ooG6vc2fw826rKvYcwO3lZTnQ/7eorKi08HugC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dBMPpODlidPRxn2e+L8r9k+7V3rROAtL5vDhhAPI+5jopirKPlvUJ6VWb/JVEjv7GeUTQcIote75d5r1vAkuIfTM7k60fzUGD0quVsuUqoAcSAZZf1vTStMpfrPOqSrjxGJADiPIbNDU2CEFvjZLsngpVXgvpW4Yyv2zjIzlxD/MHHRODRRsgvv5GqwqJeTjBnoF2zP4+28oNllPAq+lSVbvQ==; 5:x8h9gXXzr6atCZ80Qp8VJkHmlqlHMI3EIaIFOEeDlDWOjGI8w7bln3/Nzp+9F5K+zPJezc6GoO7fcKKT8lpQOP5Bm20OhiKKhS9t9Wj3Phz9lm+Lqyu5j2qDU/uzDVliOaH9NmKtTae1uUwZ5+VUiOVMQvVAqpS8W4KhdJWObVc=; 7:n5X0umyYwtq5Q8KhQH9HKUxq5IRCcbP9Gi6Z0X9C2hx+wcwsf218mtv1Hr3l8jLRQH9aep5ede0dQG/rTx9t8fGYB4K4Bazz3mqixZvAoYhKFPjHYjmANrVLu1GUws/rdYCuCQOHqxeDe3U+QaxioAA17jq2uHgPoPc0xdgTuX3SLC1kbCbIxdiPebDyeSU3rrQi07iAj/tcjGl0A0uwOz+uIIvDL0qo66b3VXLlXsKDEnKsjI/nnCkfBO9qG64r SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; OSBPR01MB1864; 20:eoNrvnwIOmjzuOdsNR/dcsCzjtsesUZ7wJa3ohVkAijItHDS84o0+PG8Zd/Cnee3ugl2El9jVRclFjt0+Ahl6o4H1M900nB6hLDKXbJiXq3uksU12EXaUbQI6WGwMZ6r0FvtT0fdTWxgyxpL4L/zPnvD1SMQGrVT78DJvNLhxpk= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2018 03:22:01.7582 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6f25a056-2b2b-44fa-f34f-08d613a7e98d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSBPR01MB1864 Cc: Linux-ALSA Subject: [alsa-devel] [PATCH 4/4] ASoC: rsnd: don't use %p for dev_dbg() X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kuninori Morimoto rsnd driver sometimes want to know which address is used when debugging. But it will indicate "(____ptrval____)" if it used "%p" on dev_dbg(). Let's use "%pa" or "%px" for it. Signed-off-by: Kuninori Morimoto Tested-by: Hiroyuki Yokoyama --- sound/soc/sh/rcar/adg.c | 4 ++-- sound/soc/sh/rcar/dma.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/sh/rcar/adg.c b/sound/soc/sh/rcar/adg.c index 051f964..28327dd 100644 --- a/sound/soc/sh/rcar/adg.c +++ b/sound/soc/sh/rcar/adg.c @@ -582,7 +582,7 @@ static void rsnd_adg_clk_dbg_info(struct rsnd_priv *priv, struct rsnd_adg *adg) int i; for_each_rsnd_clk(clk, adg, i) - dev_dbg(dev, "%s : %p : %ld\n", + dev_dbg(dev, "%s : %pa : %ld\n", clk_name[i], clk, clk_get_rate(clk)); dev_dbg(dev, "BRGCKR = 0x%08x, BRRA/BRRB = 0x%x/0x%x\n", @@ -595,7 +595,7 @@ static void rsnd_adg_clk_dbg_info(struct rsnd_priv *priv, struct rsnd_adg *adg) * by BRGCKR::BRGCKR_31 */ for_each_rsnd_clkout(clk, adg, i) - dev_dbg(dev, "clkout %d : %p : %ld\n", i, + dev_dbg(dev, "clkout %d : %pa : %ld\n", i, clk, clk_get_rate(clk)); } #else diff --git a/sound/soc/sh/rcar/dma.c b/sound/soc/sh/rcar/dma.c index b5f3bf8..0bbc4b0 100644 --- a/sound/soc/sh/rcar/dma.c +++ b/sound/soc/sh/rcar/dma.c @@ -397,7 +397,7 @@ static void rsnd_dmapp_write(struct rsnd_dma *dma, u32 data, u32 reg) struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv); struct device *dev = rsnd_priv_to_dev(priv); - dev_dbg(dev, "w %p : %08x\n", rsnd_dmapp_addr(dmac, dma, reg), data); + dev_dbg(dev, "w 0x%px : %08x\n", rsnd_dmapp_addr(dmac, dma, reg), data); iowrite32(data, rsnd_dmapp_addr(dmac, dma, reg)); }