Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751058AbdLYXRk (ORCPT ); Mon, 25 Dec 2017 18:17:40 -0500 Received: from relmlor2.renesas.com ([210.160.252.172]:49044 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750781AbdLYXRh (ORCPT ); Mon, 25 Dec 2017 18:17:37 -0500 X-IronPort-AV: E=Sophos;i="5.45,457,1508770800"; d="scan'208";a="266224960" Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Message-ID: <87k1xah0e5.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Ryan Lee Cc: "lgirdwood@gmail.com" , "broonie@kernel.org" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "perex@perex.cz" , "tiwai@suse.com" , "arnd@arndb.de" , "afd@ti.com" , "robert.jarzmik@free.fr" , "supercraig0719@gmail.com" , "jbrunet@baylibre.com" , "dannenberg@ti.com" , "romain.perier@collabora.com" , "bryce.ferguson@rockwellcollins.com" , "m-stecklein@ti.com" , "alsa-devel@alsa-project.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "ryan.lee.maxim@gmail.com" Subject: Re: [PATCH] ASoC: max98373: Added Amplifier Driver In-Reply-To: References: <1513907030-18441-1-git-send-email-ryans.lee@maximintegrated.com> <87a7ybo6em.wl%kuninori.morimoto.gx@renesas.com> User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Date: Mon, 25 Dec 2017 23:17:29 +0000 X-Originating-IP: [211.11.155.138] X-ClientProxiedBy: OS2PR01CA0110.jpnprd01.prod.outlook.com (2603:1096:602:1::28) To SG2PR0601MB1886.apcprd06.prod.outlook.com (2603:1096:3:9::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 5aa8c8de-1d70-444d-764b-08d54bedac6e X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603307)(7153060);SRVR:SG2PR0601MB1886; X-Microsoft-Exchange-Diagnostics: 1;SG2PR0601MB1886;3:1iYryzqJF/+VwKhxNw6cJ7Fu5JnpyFBBqzHEGeiMb9SkqGYUhdN03zOqE2gS5aOFA1s2fkufIavJ0qzGHbKgab2zLBe4q7Q60cfuyxf5LVFXLqkBehyaq7VxviJOtJyZestWW7mricpW88oxw51x+lDhkNmUi6cNIs8WhirU7ukCKOzCNtshWcnVTAABaj/M6mPgCbMhFVDVNN4JKn7ZuK+RwS06HFeE9tKNHrw7q1NJS7VdBu0qFh0w6/SWmrlU;25:2R17DK9QLG1PxfHYuzKNPFJS5czmRoVkjq36jOAWykFFSbI7ZnwtbucegAfXTysvVUmQ+UyaAM/qHCmTLrePNfbB7J2ys5F8I3A8F7uVeeQa/Ckn8gksSRqSw3Hy+RKHd5zrKn+WCYq3u1MxalL6DiqQpPHL+nJ12GB573EWgWkJfKK0RIUpAGwZhZDlLFd3QxQv1elU6qx2yrQ8d9g4KxWy1+iBNeueKYbwzwBOVpt22TYwPE3FEbtp/o6mXmVOgyEg6GWkTy+WE46XYA0AwRmoF5rj8mx8TM8O7R1n+AcRUYKoxzdAee/4jERB9y0MUYCKII/CMZC1DUxcJDwhtg==;31:0epB/n5WYyLXsT7vHXLoxpMc5UDLaWkDIVpZmJkE7i0d9sTcvm1eCENgK7jn4YR9aBfwp3Dm8iAMf5sa4ARDDSmubXLVTPKc1wFO3QFv/NC8P8XOicncYZvNC8hkSlmjzJ7JF3wWeYzoHJs4OwJ+1KMut7XSJ6kiXr01S/GIXxWr1iiQo/iT56+O+D22ysRHwRPgbJ0YeeFWm7f4BFE978o7iM183Ezv5Lp57uzztbg= X-MS-TrafficTypeDiagnostic: SG2PR0601MB1886: X-Microsoft-Exchange-Diagnostics: 1;SG2PR0601MB1886;20:lWxcx5iosjK1/l1HpWZYfGMdaGeqphy2aojm/33oGeu8TB0pvmn3S3nLqFWcXJBlDL5WvTpvBktajcRyakD0cY7RMACHFU6SzbZIjUtYf50TUZNsBSNJdr6zxrLavu3WTfZw8jAFb3jckzkp6Y0bdC7nZ0+DPzNtiBKSXhkajMn18QOwhw79bSgYj2inK6a1WKYHntB66e/N+jjzFIjEbIFm6J2xvYOp9lmd99jrv/ngBQClSdBK23oFJ0caeSxfVJbtoisLe4Mla3D+Pv1fbFoB3amaJi+fNaJQakIVv/FcXbR5tgFo/BKL+Y3adWAh6UtpkepM6GkNHRJcuPs2RlkzarufGekU+2MTofN9xns9x0Zx4B/0LR4MxI0tSfCzf5GDfEPCbN83QnMxViLWzu9QwuGWjjfEEAjjJS7butmvz3AfORBM1KANY8yR8EzTIcEFR5pnBNxuU7mnX/6GEP9S8wt9/TGGLWPreG6Bk2thAxkRxsMG0jHmdktKOe/P;4:xNOfNOPrCDeic2NqByDfB3urRBQBHNF1LAr6dTtap4g6HHsqILfB/OXJZ9q/HFOOGcA7oszB+F+m0Iivj83mUmCLgEpR61x4ctfjIP3ZLTWtKP+33F5i0VMvAgRAfGUvaUmWJD7b1eOczMLs1Z+LqNUp5kiPF7Lin/ChB+gEB8HPhXS7WWNgzBlKLaDM4I5VF5xilIZR16S/qv7uE/jIXpW8Z4AX8Y6RolNwyiyiGaeoCNoXIzxGlnTgDFgMhub0+VEgw70K+4RhE/9B2j5Dew== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231023)(944501075)(10201501046)(3002001)(6055026)(6041268)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(6072148)(201708071742011);SRVR:SG2PR0601MB1886;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:SG2PR0601MB1886; X-Forefront-PRVS: 0532BF6DC2 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(39860400002)(396003)(376002)(39380400002)(346002)(366004)(199004)(189003)(97736004)(386003)(105586002)(52116002)(58126008)(23726003)(16586007)(3846002)(54906003)(6116002)(36756003)(106356001)(16526018)(25786009)(2906002)(68736007)(66066001)(316002)(76176011)(7696005)(478600001)(47776003)(8936002)(86362001)(4326008)(6246003)(7736002)(5660300001)(305945005)(81166006)(39060400002)(83506002)(7416002)(6486002)(50466002)(81156014)(53936002)(6916009)(8676002)(53416004)(229853002)(69596002)(2950100002)(16060500001);DIR:OUT;SFP:1102;SCL:1;SRVR:SG2PR0601MB1886;H:morimoto-PC.renesas.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SG2PR0601MB1886;23:T+BS9CN+CEXmOYi7XO4+MMdUGExxFKFtZ+zIAxi?= =?us-ascii?Q?9nqElaCUi9eWMhbF88X6SM/5ZvLzHKG6hEWNBUO6j1y0xaV4FU8ZGl6Y0Ex4?= =?us-ascii?Q?EVKEnxw8ivNCcapHkX6qDcSS8+ghSy/58qL/JvLIjLMA2j3odsCJk+iowWHP?= =?us-ascii?Q?bot/eHVdQGgpA8jrw6BqLGGDPHecwIUM0AKnfpk4146I6Yj4lbT1zF55vH73?= =?us-ascii?Q?d2q/F/+fO6LLQgTiU3e2Rp7p2ped/NV1L301rPYOKAFTjxD0iS8XWu6JE/PX?= =?us-ascii?Q?5ykuArukcYD9mhtOz8huZaT2Amk0m6dfSR64NZGpnCpzLmer2BSCPE2VwJ9I?= =?us-ascii?Q?AEeQ8NvPKVsUaIL0/mhwPEqAZux/y9RzWzD+Gr4zKB9BZDjQjrzv1LF0Fv9P?= =?us-ascii?Q?6MPzRmQBB6TNanHF6V5ulq6Bu9rPxy5bHlUUw/rEg9u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atorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Dec 2017 23:17:29.5045 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5aa8c8de-1d70-444d-764b-08d54bedac6e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR0601MB1886 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 931 Lines: 29 Hi Ryan > >About this max98373->codec. > >This user is only max98373_set_clock(), and it is called from > >max98373_dai_hw_params(). > >You are getting *codec from dai->codec in this function, and max98373 is > >came from it. > >This means, we can remove max98373->codec ? > > Thanks for your feedback. > I will remove max98373->codec and change related things. Thanks > I'm sorry but I don't fully understand the benefit of this. > Keeping regmap information in private driver data is very common and I can see many ASoC drivers are using it. > I was able to see only a few driver use ' snd_soc_component_read'. > I would like to keep regmap_read/write if it is still acceptable. I checked other drivers. Having private regmap seems a little bit duplicate for me, because we can get it from component or dev. But sometimes, in some drivers, it seems can be difficult. Sorry for my noise. Best regards --- Kuninori Morimoto