Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933140AbcLIAdL (ORCPT ); Thu, 8 Dec 2016 19:33:11 -0500 Received: from relmlor4.renesas.com ([210.160.252.174]:18098 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933047AbcLIAdJ (ORCPT ); Thu, 8 Dec 2016 19:33:09 -0500 X-IronPort-AV: E=Sophos;i="5.33,322,1477926000"; d="scan'208";a="227475077" Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Message-ID: <871sxiymca.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Stephen Boyd CC: Russell King - ARM Linux , Rob Herring , Linux-ALSA , Linux-DT , Michael Turquette , Linux-Kernel , Mark Brown , , Linux-ARM Subject: Re: [PATCH 2/3] ASoC: simple-card: use devm_get_clk_from_child() In-Reply-To: <20161209002837.GE5423@codeaurora.org> References: <874m2jvtmw.wl%kuninori.morimoto.gx@renesas.com> <871sxnvtkp.wl%kuninori.morimoto.gx@renesas.com> <20161208220942.GO5423@codeaurora.org> <877f7aymxu.wl%kuninori.morimoto.gx@renesas.com> <20161209002837.GE5423@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: Fri, 9 Dec 2016 00:33:02 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS2PR01CA0093.jpnprd01.prod.outlook.com (10.174.152.139) To PS1PR0601MB1449.apcprd06.prod.outlook.com (10.165.210.153) X-MS-Office365-Filtering-Correlation-Id: da5771aa-7385-4223-5606-08d41fcaefb7 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:PS1PR0601MB1449; X-Microsoft-Exchange-Diagnostics: 1;PS1PR0601MB1449;3:MU5Q+vH1wDaj3iuVdNI9XI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nostics: 1;PS1PR0601MB1449;31:VWC8fzv2vaxEONu481oWCqQBIqnVS9XeZLA8dMwj1HdonQkJLrfUcPpnvVcaMmU8XF3r3NYPS5wpxWO4VZXuRS93rb/RvKOSOc0COtmlXcMdxbbZz/JOIQE2FCRNy25dV3hMs9YbhHuTYVlUpMSjC0fCx6Q8bS/GAhBMVF9DLeljtBcqoik8Bg67ZfDPR+5oz33ulUvkcvbeYjJaoAgGuMIHioDzr1Kpf0V/5yvnEOIEGeeJKGdGr/HB0K1iL1jVhUQ7ojLUUljGQ9b93Urm9rAMFJ6KRtyaQaIHUJHoNRww4RSHgmDVKDHbP+m8DWTV;20:e2hwGmo/y6QwdGjF2j6j8FPCje52IARer0SI7OFwn8aMymEzTI/kcbUBCETm+DFhyU0LKFMWg5aoomPxqIGOKMXfUt0h/kR/VN6Vyb7Pk81A7iD9zbceT39aYDLOaaZ9lQeWK/1MA9ZxhStJQ1/H7jSB5NtKMbzi5Ko/XQmiFNi0VZl05IA/usko/5gNszRrOmkNZ3iA7vNJpOEqO+/xeT/RlFJe+jdaJViuRXtBEIisNGbPoO5xedPNTrVa5EMCC28t0o92diZMSIfyzZDRXfyFsRaKKcNwkXlOEzwOf8/z/sXIE/6FtC7kLxwtbGZtZwZzxcbFM9NFDQic5ZcnxqVFWgQtc+w0V0BqLdLSs2TfH6umKA3eDPxEKTX7dKs+XzMHeqGU6FszNpt7rhY9gnF1nIxwEEYLz4nhYVYpeA3q1kuTaiyg2IFpME0k/0yqs4gAbqfb/zgISvdMC0gSHVuzNI5OlPzFjaimG1bVAMkSxduQP0AIbUCZ0LJQ66gf X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026)(6041248)(20161123564025)(20161123562025)(20161123555025)(20161123560025)(6042181)(6072148);SRVR:PS1PR0601MB1449;BCL:0;PCL:0;RULEID:;SRVR:PS1PR0601MB1449; X-Microsoft-Exchange-Diagnostics: 1;PS1PR0601MB1449;4:IyWQCTA1WsJFDvcbh9YVXJJA0gT0bskITcNYRxU0JgvuWqiP2cm99+l+TdsWxJtsZw4mvyC9PCds1Fd4j7MQsAqgDfxsWOHuOYNT+TCVdk31uPN3MvCXiYoNTQpMg1GVwxJ/i5eaNlOKpd/Y+CQ7OvJxZDSOBaY6DlYF6v0wvVWG/WCbHxhRAOsNVRTtH6XdAwogvHCy3SlVjWLpBFGgY00U6LxobrdCyWLrLTq/RB8yQB/slR67J1Fq1Y1fjGLhtBy6u8fHWcnBgQQNhH1MDIIrZS7qgzp51h3DvdlxCY8KZ0RV3WWQC2D3xLu0tx7QJq370Pe78j1O5Ra5+DBua2vXHQPtmbM4532fbcWou7Q9uBcSaW+/mPUTvT9gY+wAjWZp+HPEJ0TPAfvpiDQHfjVB/WVeDnZxcc/Pp7oGOKwTJwXbWHonIRade+B6NVBSpsy4RE8md1vKxRcrJuA8rt89dqO3vvEZSiwK65wgZ5i+O+l0EsogUT/OcUi05YU8wR3S9nwOPJqiBq0Cpe6y+fcWdYXdswMqgFa6mqPiqzaLNEKNcbCxVmEUpTDFs2HbmVW5bGiFXw/LvGXYNUfFSxhN3tNHj2hz+SecJTedW6I= X-Forefront-PRVS: 015114592F X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(7916002)(199003)(189002)(86362001)(4326007)(2906002)(189998001)(42186005)(81166006)(53416004)(76176999)(54356999)(81156014)(229853002)(33646002)(50986999)(23726003)(92566002)(93886004)(733004)(101416001)(6486002)(38730400001)(6116002)(3846002)(7736002)(46406003)(305945005)(8676002)(47776003)(66066001)(5660300001)(110136003)(68736007)(83506001)(105586002)(50466002)(4001350100001)(6916009)(2950100002)(106356001)(69596002)(97736004)(36756003)(7416002)(16060500001);DIR:OUT;SFP:1102;SCL:1;SRVR:PS1PR0601MB1449;H:morimoto-PC.renesas.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;PS1PR0601MB1449;23:bMLS8vBzA5pSiN942lnBQNcV/raVnnacfylzatw?= =?us-ascii?Q?IwBxJHYqvZHLk+q9wjotnO6z2BNG5lTsjh+myUQQ0qVlT1gBzQrnGbogmxKO?= =?us-ascii?Q?GxJSfj9YPZy0F4Idp3bURRX+tFWCyVnnhWbRoRkWRV0GP+edg1Vz/4/MsetO?= =?us-ascii?Q?iAHt7G7uXjqPimbZCF0Z9BuZdivyZJhaBcBBebSWjgpiqXUbKCTUkgavKc9O?= =?us-ascii?Q?apVf1xBvFe6p+7T8SuGTa+gLcipOZ4w0zvg7tHci0LCEur+COdnL5sNJm5de?= =?us-ascii?Q?lLHMA608eBqxWBQb2KKIo+wLiV88Z5mbpbXZXMGpkPNVMMzzgxyYS7rd/qu+?= =?us-ascii?Q?lb0Zbww1q+5imqK68mHreKhSJVDqsJBGqF+L9JiovuYnTeJujF9n1qzHgsiR?= =?us-ascii?Q?nHpCYK8t2kn3rdNFQHY9xtCdfFhjvR6Zajz/rV7PerqYfwBFgilN087Lam6Z?= =?us-ascii?Q?zfFTQlhEVomdW9tP5LGtBJhGvHNpUofSz2zPv6qIrjztxwLU5y/GJNQTjLul?= =?us-ascii?Q?1JH7gwio67laP4uPcWmrbF0zHhUJ/TOZuim/Ww43WPVcT3KMm7jq6XsU/xSk?= =?us-ascii?Q?g5Lhm6tDrL7uDUlObo3J2LtjmbqCs6bN2uuLw0JsGCCBKKUmsOUFWUJWL1EF?= =?us-ascii?Q?gy5PDjW/MWCWo2qT/v5ew3PC9IlJCRUbmrlFgmVQwsh6F9fef6QFgjyHeB5g?= =?us-ascii?Q?Mm2EBNiac5l1CeNvYHjjfl5zrRVXPuqA5uEOSzSChHEBjn9jxIu8n3+iEq39?= =?us-ascii?Q?aHT/PYGTSB7zQn77PgdiddN6CcO3b2GzhGNyTwHrluY/Gu+JUz4ByVT43U3R?= =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mKrjNPKx+78aWjcdjJJMA9rp6fZnLaJdTL2Hgh9ekmhq7kMkIQMKhx0oTd+1Y+EA==;24:0ViWjfohoI0Q6tojIFtHO9T3jTDP7h2BSdMIKpONyudCsmAE8Vk/EpY9CNorvVPsIuX97ioQ4Vrh4VDxssabkXAzZPMwxJZS0NMWhTjVydA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;PS1PR0601MB1449;7:EThmmWWqdWLJVqPu+ma4gDmFK1Eo6QyUiVuberizCUB6weC95TT5dcNxQcbeboSmrLqcJDxYIDbv53VOqc1HtXDiE+O65cTpOnEm/hWj82kGAl5l1Ylern2tKuWltFY0rTqcjQEy5ihPRVtFA8rfoA0DbCn/AxLINUp2m7iuM6GnnpTKJyd7JXUZTdAX051MJzMwIXziJwYHrtSzch295PeUxs7fPxpS85cpnSluA6pewDixmm3WOO0pWu1kKA7ztl0SySsxystngsgH6pOpwXl2Y2fNDHWlppqwRPW9nc8pEvXyu6VYRwGsYzjjB+07LxaiPgyWjdQirXC8tf7zEhZndEbA5h1OkyeX0Mz1Ba54xb30fvsFMkRB6sc0YbmpG0XPs+sXMg2inJSFPVfmjLFInbQIfrqcXGEDdCp/o+WbmXfDWacz7HIPI/RaYeSMNp5ZH2VR84MmBIKcsva7oA==;20:NOaq1vAGWeJxpZzJPudDSM5HUOE46pvDJIN2Cu5Ys1NnokZkBaj+JOW9FPelWZGnwmLoBtN8bfbHEZT4pfa1dFssi0slGKukE/In1o2sGPaLZcP6ggdaQyfWwi3eGg5dAqjhdFMqZ2yelPEXo7aSIkVnPHSdlj8B9wuJ+hIRKds= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Dec 2016 00:33:02.3079 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: PS1PR0601MB1449 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 575 Lines: 18 Hi Stephen > > Documentation/devicetree/bindings/sound/simple-card.txt > > explains 1st of_clk_get will be used as "if needed", > > 2nd of_clk_get will be used as "not needed pattern". > > 1st pattern will use specific clock, 2nd pattern will use > > "cpu" or "codec" clock. > > 2nd one was added by someone (I forgot), and many driver is > > based on this feature. > > > > Can you point to some dts file in the kernel that falls into the > devm_get_clk_from_child(dev, dai_of_node, NULL) part? How about this ? linux/arch/arm/boot/dts/r8a7790-lager.dts :: rsnd_ak4643