Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754365AbcKXBqD (ORCPT ); Wed, 23 Nov 2016 20:46:03 -0500 Received: from relmlor3.renesas.com ([210.160.252.173]:64011 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752458AbcKXBqA (ORCPT ); Wed, 23 Nov 2016 20:46:00 -0500 X-IronPort-AV: E=Sophos;i="5.31,689,1473087600"; d="scan'";a="226168216" Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Message-ID: <87a8cpejn5.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Stephen Boyd CC: Michael Turquette , Rob Herring , Russell King , Mark Brown , Linux-ALSA , Linux-DT , Linux-Kernel , , Linux-ARM Subject: Re: [alsa-devel] [PATCH v2] clkdev: add devm_of_clk_get() In-Reply-To: <20161123191037.GE25626@codeaurora.org> References: <87wpl2yyuw.wl%kuninori.morimoto.gx@renesas.com> <146785219147.73491.2827268663638530377@resonance> <87ziptixv7.wl%kuninori.morimoto.gx@renesas.com> <20160707122636.GP1041@n2100.armlinux.org.uk> <8760shgfzu.wl%kuninori.morimoto.gx@renesas.com> <146794140875.73491.7115209079607438738@resonance> <871t34hlin.wl%kuninori.morimoto.gx@renesas.com> <878twndi54.wl%kuninori.morimoto.gx@renesas.com> <8737isvwc6.wl%kuninori.morimoto.gx@renesas.com> <20161123191037.GE25626@codeaurora.org> 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: Thu, 24 Nov 2016 01:45:53 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR0201CA0003.apcprd02.prod.outlook.com (10.164.90.141) To KL1PR0601MB1446.apcprd06.prod.outlook.com (10.169.69.24) X-Microsoft-Exchange-Diagnostics: 1;KL1PR0601MB1446;2:JVRa4rYa/rl9XnQrxacglk4S9tg31WFfpMCAVUyrdxpu8pndD4J5qMTrx1qHRE4szJI3jb3tQap0FSH6aUqwchjcCq4djxAAq8euuS629ZyE/2TbdToVdSjmiOzRxKc9K1T/fQfVKCbLFnuLWckB7YVj07Zhoc9SvHWifbkfblU=;3:i6rspYNw2dmzqT6gwF1jbL/ls13TExDcKW8AJm3My7P11j/0aPN3H+eySR93TabuhLFHubr4lXC+qYMKXDwQR7Nlzu9cNt6FEaYUuWflmLKOzrkAYJ4N1nIrxLA4fjc4wuASu8LSiiPAnJwG/BoWPHitJUQz7YCi9V/0QEg2iEw=;25:DI8ALWEFmAQ+mVwz8OAnEmLehW4BKjWR0sI5zAMd/DkHkj2A3BXXhBneo+ALACjoulCJZ08R39OxyJfhAw3iHXVsnGiR8dsYGtAvVVglQDJgAdNb/EqUrZ0onKsmZWUt7Y6qAKqNQ2N60oFzz7Wa8WNrLIKKCS7xGQIVgm9Wj89xSxghwfYS8RhurZjAC5BOHsXDM8H+XDyg0P3ZNE63ORN5OEJLaxNOJcizTTIhSS66yJZTdsBgbOd6/0oH+ZsiO3/hyr0IV4fXss+eeyLLpCyzgUMRDA10g6cNAFJFmONPzxhtGRfNigaIMXJyMUxvdFWXuycDXy1ru8zEbyJcWkOp9DYrHFGINdG/ZFEnJwB13kieT6DdxLjAzKrcZEQQ6fIz5E2yIeDcVhBky+UsrZC7be53gGBE2IPYjww5c6mkqnOArM+oSDl7lDeQMrVv++MQcCtAkLgOm7AL/cWakA== X-MS-Office365-Filtering-Correlation-Id: 6c91c475-1926-45ea-9c76-08d4140ba13b X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:KL1PR0601MB1446; X-Microsoft-Exchange-Diagnostics: 1;KL1PR0601MB1446;31:VM+vqfRauX+tUKMUo5Di7br7RlgqBl/UL9IpF65voAHI9QI4xJIwOe9gpqxMSPhlgdRXejo5iykoyiOIvPwBL07bnugTXyQJKdlgznHBesjZirJ2cLCgrfuU8LPIsCMqta211nYeRb9LYU8vZVjzjUhkN5f7a2pnNbJ6Xw3aForifhRlRfU149LNZ4DoylJnu/oirv1TUmCabbed9YQy1Q2kmoi99dFvwOHvhLEQ36wkkCQIKGMyAhpim9Sj2mlk5EhgoMybJqcqLZywHyRsRw==;20:ct0ENLtZMq9RM9T7wXnr4EZXJajxdbPV1r73jD9q5R5GdLrPmyWttT9srP6xQTEBA7u2tC5yZPan11Cl3Duwdi7iPbU9rV5WxVcMvyg050KUXqwQVYBakzx2Ax+SMAgWdrUO58L3IvTche+knF5DEoB+Tye98W1e/nfQoXHwKTcunSaoWyNiJad3xGNRXa7072C9wXACgmO/CFOka7tQ8xDtcB8jm5iZhD2NpwrDWW8NtbtheY5b1YWIa6/kxV+Pt5MWgeoEN/C5tzb20aokHFyuvFG/kHwh5Y2mdofF2M8MZX8mrp81tmFJbbcaYNM1tp77kOUte1RhtNDqpuDWxX4JnmdB98mgf46yJe3RFC6b5E2O152u0TG1rxMmdI7D/JBxycA9mumfem4druteZh7JkAsf8JfvbZWc14G3/BrFsQzjVnPjSRRjKJlCrX177sq0Hq+qW7of6eslZUirU+lUyvEzIThdd4hSH5sNVgDHEyQJIIiMhTVRbD0enjWX X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6045199)(6040307)(6060326)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6041248)(6061324)(6072148);SRVR:KL1PR0601MB1446;BCL:0;PCL:0;RULEID:;SRVR:KL1PR0601MB1446; X-Microsoft-Exchange-Diagnostics: 1;KL1PR0601MB1446;4:dIullLDgpYLhBZc7Fs9X4fKiHPTeoOLVpJdPfrtdjglQ/8uw3hiawb21Ck65TDLZ4/YtCiDf5ei/d8cgo0lkhhyBP9X7mfQA3+5k/oOM9Ac2+u68JWshWiEPhZuesC+u4lD4ulT/A2wQNow99UHQ6ZHu3X/FXnOWbmW91H6oDhRkY6kFiKhwo1e1P546LiBFqgSJp97lKuX00qj+ozUImf0+0k/vjKQqpPC75x/xgL8w69GlBu7tXkE7ONvNwYj4fGBEZ4WIMoThyLndDIwq9sk9KcGmbQpgibeSnzGqEuQzLO4r734Qo0iZzWI+qj/5/Bkir1+fkHgYKBe0j1cvwEf58731FNKJxQoM18RQxJ0GwlnVxKwy1fITATF+vP5rpqRGK01tO5dLzeCJsAN91QVMW1zd1Uw1dSiqoU3qh1w6i1ciQ52nNWcF3uQJRLVNMe6ntzO9rEJBKJ8aNZQP+M2r+m+bf7ngoj56w0vySlkhuLZojgR9tTXnCxLe2nVRmFxLqLePfZW7o1qWrGanCg== X-Forefront-PRVS: 0136C1DDA4 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(7916002)(199003)(189002)(86362001)(46406003)(110136003)(50986999)(54356999)(76176999)(66066001)(47776003)(2906002)(38730400001)(101416001)(92566002)(53416004)(36756003)(4326007)(50466002)(42186005)(106356001)(69596002)(8676002)(7416002)(23726003)(5660300001)(3846002)(6116002)(105586002)(81166006)(81156014)(97736004)(345774005)(4001350100001)(33646002)(7736002)(7846002)(229853002)(305945005)(93886004)(2950100002)(6916009)(189998001)(83506001)(77096005)(68736007)(21314002)(16060500001);DIR:OUT;SFP:1102;SCL:1;SRVR:KL1PR0601MB1446;H:morimoto-PC.renesas.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;KL1PR0601MB1446;23:E2kEUQtcGAtcQQ6jjmNiU6gStkC4jeFmBq3obNR?= =?us-ascii?Q?TbgDvgqg5WQfCQsNOaEYVGYmmd5Ly1y4fq60fiQnTJRZYHoBIqY/MkGvhbSP?= =?us-ascii?Q?dZBIcw4purRp01vQewViUFqBfuUCACHfxWyYMluaC11ACqCn8DehFNaV63Y6?= =?us-ascii?Q?UlOL8VV7u17HxyFv6ZB0uEUs+u303Qn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ZaMmjjAGXkhIH44No30zigF8GQATLPJJ/ev4445evRFfJIgS/4sy?= =?us-ascii?Q?2BuTUB5OUkJsPqc/TnxVKyl+eyDY+B8dxTHP8Q8fWYr3/I8P5IOEByttqKeQ?= =?us-ascii?Q?rPYMmrETgj/77mVEVOMmCehY+84iafqQ2B13ij+HrRdhmCpDF0/cQvc4Mb9x?= =?us-ascii?Q?GRf2y5rHI7xB3cys8Wnw=3D?= X-Microsoft-Exchange-Diagnostics: 1;KL1PR0601MB1446;6:8qfQ/oijrho1JsCah0J6KiC7TE3bKYY0eAEMeMFCFaFsmskVSOCw2BO8t1LjbsOKV81JO+pzL+0JA9lhzbvg+3LKm/ZlNz29Lol0sVdm4/JlcKszc/DxkD7JEzp4ZNMoe1Qo9lme5O4rlkhTbNE5HspJ3AOQQHW68RSIBEnJJ2Fm9xf8VBbVFSqvr4pTiVMNSFqmC4/B6pPAxqiOrWMQYCTI5UvurOv1evh3oA6GsFS1JPLgOETDIJTYv802TKxw3P8rn0QCG2HldJdTxj6+KtzBVLsLd53GKE97fbwIlWdJ/jcy0hP5Dmp5HZ0pXhHRDIeXMeSCWTP2b3aNCOJRHxfWSGpf/t6GtjmpNRymOLgsmIdM84ssVe0Q33rjGRhX;5:yrZwjCQzSqgPBhGBp+Pfi2YZIT/0dknFHV4ORfwtC2J8O9YILa0AuGyXr0SqPC4elGom6Arlq94208h/Q6sE5UrS38haCe1K5Pto2iEXN1cZIixVN2KYQgtO/URcvpdGTgdQ+qvEeWl6C9vVtMREhQ==;24:CmY1/qs01n41E6Lidh1bTWU2og6SxbzqNqKcJ/kPfbBsCyB0Bs8jE18LAuexdIT4n0r++U1ARDHWuKqsDzlCjJm/NzZsKUDmD9ReDdALUak= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;KL1PR0601MB1446;7:BMZ80GvOwOkG4dI3ZgzZ7meyyhoNQqtAUt5UM2mnv4XcjMvoc1E19eDki+7/jB9d5IJ2ouHNJlONmKawlOA64kFNRCTEjjHPkHYjxVmsnIPxbyNYzBzvoY0Az+opA/C6BEXjVpWRzZ/mF9loDZLlnF4Qv1CAiMcMINwWV/aeBT2dEnLj2K1gwrcoVcmQkd5vWR3y5hMqqfj9F+r1j9Rx4xGNqcWj57InFOW++5JQ1AuJA48PkWWpbOfYXnXaXE8Yza9Egnvyk2up6MUzgxlPHu1mfYYfSe+NXn9ZgIeG/2S8NJAP9fTG2NOzhQBpIG33YbvAm0GtfBvTg6YNW5aEt2k7abG2aGyEXWWPtyNQSuc=;20:f5IUXmwvJ0M8FFPUKjJvoRpeJDtxUotcJtx/gz8duh/Y+D0ZmJp0GFjUIEOOfRPizHwV+v9LEfefxemlF0jjRaNtCpNoyNvnzujHqA/hPMzQYpEzpOrO6w2j3FYe7h5B+qTeHPFbLEHNY+cb7dWNBcweVbvhWLuEkTnCb+ESLSs= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Nov 2016 01:45:53.7927 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB1446 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1046 Lines: 40 Hi Stephen Thank you for your feedback > I've seen bindings that have the 'clocks' property at the top > level and the appropriate 'clock-names' property to relate the > clocks to a subnode. > > sound_soc { > clocks = <&xxx>, <&xxx>; > clock-names = "cpu", "codec"; > ... > cpu { > ... > }; > codec { > ... > }; > }; > > Then the subnodes call clk_get() with the top level device and > the name of their node and things match up. I suppose this > binding is finalized though, so we can't really do that? > > I see that the gpio framework has a similar design called > devm_get_gpiod_from_child(), so how about we add a > devm_get_clk_from_child() API? That would more closely match the > intent here, which is to restrict the clk_get() operation to > child nodes of the device passed as the first argument. > > struct clk *devm_get_clk_from_child(struct device *dev, > const char *con_id, > struct device_node *child); Thanks. I will check above 2 ideas. Best regards --- Kuninori Morimoto