Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933061AbcLIAWc (ORCPT ); Thu, 8 Dec 2016 19:22:32 -0500 Received: from relmlor3.renesas.com ([210.160.252.173]:51644 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932744AbcLIAW3 (ORCPT ); Thu, 8 Dec 2016 19:22:29 -0500 X-IronPort-AV: E=Sophos;i="5.33,321,1477926000"; d="scan'208";a="227474017" Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Message-ID: <874m2eymu3.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 3/3] ASoC: simple-card-utils: enable clocks/clock-names/clock-ranges In-Reply-To: <20161208220901.GN5423@codeaurora.org> References: <874m2jvtmw.wl%kuninori.morimoto.gx@renesas.com> <87zikbuezr.wl%kuninori.morimoto.gx@renesas.com> <20161208220901.GN5423@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:22:21 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR0201CA0014.apcprd02.prod.outlook.com (10.164.90.152) To PS1PR0601MB1451.apcprd06.prod.outlook.com (10.165.210.155) X-MS-Office365-Filtering-Correlation-Id: fc2f2b98-a740-4549-0d2b-08d41fc9719a X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:PS1PR0601MB1451; X-Microsoft-Exchange-Diagnostics: 1;PS1PR0601MB1451;3:cOgcTyE1dlZvr1npWv4MwXAe5ruJT8HYgbRNTItrLQ5KR72rBxz8GeL1PKd0sAf/A0A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8ITSJGaTeV63bTqfUjXFclAZvQuGK4lVfQ73lecJB1vDW4bWUXirp2z9H40zU1RGpMTJLirFOaqA0DXLzh3bV358MyaAu2iswOuAeVZpHKx2GAZ2bUgvKi8Ty2VWYBj6yJgWWqGG9F4vp3jphf/q3JfjuqJnq5E2LuyNzj8tafOptcFE+rX9EM+PsXj/oaaAkQNfQ6tUTQT6ebBAFuo00S2E46Gcy0nikeSyrNwweousxgMVMbEhgpafSfsdGvhFELx261vxy7RhcEXAsptg5aUa1RouET972WOYDf05X9RquNFB55VgizSeP4HUTOpdXAKbimlYOUynZeqr+ZrewFflRVbzFnGCO/xmRLC8eD7gentjoEak9+LEf3SwW7lmjTrTCJfuCNwU+GQ4Zs8e2ffTCHHLlHKbS7ZK5I40wK7CG4Yt4H4CDQnp5J0cVws8URFwVRuPIHGgbT7TxO5ha X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6041248)(20161123560025)(20161123555025)(20161123558021)(20161123562025)(20161123564025)(6072148);SRVR:PS1PR0601MB1451;BCL:0;PCL:0;RULEID:;SRVR:PS1PR0601MB1451; X-Microsoft-Exchange-Diagnostics: 1;PS1PR0601MB1451;4:Qc0zBQnll6nSLBpc1nwR5YAQ1zyaKNU/hNuvk1NuhqyvBxkRqMHvSrsG8GsMQ/S8sDOpUNH3UxWPJ6g+XMPUc2FvrpXuabOICIKelUVFBsysVDzW/ORygYQOIuPi6GU5oRFloF4R+UzJsU/674hgi6fVbIm+BJx0r5XcYYqFU5kiriO3IgJEaEyvFdjEijJ7RDNSvUmKdPJPNHKYTRO3KS03qU8pmeYHFmytg206lH+4oabul/6zf4l2mQhHLVOTZOLmisCOPlyo3mvw0IP2/fN4RgFSobVsUqCqcxxaoad3qVYJKItd5bzfeI/Nz19dHQexfQzd30V1ylwsBb7huauD/AxM7YpEPZ2MDCG1lGuKAmGLxoDmrBrbqwfLSnp8DkJz5bjRx/2DrWP5kqEOMpXV9RAjdpDU6LBAMD1Hu/+MKNZm3z6PfNDoqGc8gCPPJuN9S7qyGvwJe/vPQhG0UaFBwsyz/ExTlJjHAs+hZsu08poANC5WG5IcyaPNjIw9vDelOiKUFmz0BOye9/UVgjykI20ctf4Lb3devJHJ1KQ13Tv7eLs7RKnwwhlu46tMTJzcWLznLCHh5ticHpYlqViH+dNMC1iVWklMxaIlhCe5G4QBDZTY+pVMw8umFDZR X-Forefront-PRVS: 015114592F X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(7916002)(39410400002)(39450400003)(39850400002)(39840400002)(39860400002)(189002)(199003)(6486002)(733004)(36756003)(81166006)(46406003)(86362001)(33646002)(92566002)(81156014)(7416002)(8676002)(229853002)(38730400001)(230783001)(189998001)(97736004)(23726003)(4001350100001)(3846002)(6116002)(110136003)(4326007)(68736007)(2906002)(69596002)(101416001)(5660300001)(83506001)(42186005)(53416004)(54356999)(2950100002)(6916009)(76176999)(50986999)(305945005)(50466002)(47776003)(106356001)(66066001)(105586002)(7736002)(21314002)(16060500001);DIR:OUT;SFP:1102;SCL:1;SRVR:PS1PR0601MB1451;H:morimoto-PC.renesas.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;PS1PR0601MB1451;23:tgFPzVpnQ+q19sY6eFD+lhc7e8rAZfBv/p+76Pi?= =?us-ascii?Q?7uEkGklp9pwiCPC58k7TnZw5ntnlTz3F8lFxuvV9DShNeGSWMcvAs4wn0/dm?= =?us-ascii?Q?HYN0DNrnbpdxevx6gtCfyvW+8udTiRJ4WHLxP57VTtFfkdx5b7viJgbavVdt?= =?us-ascii?Q?F//9m7ZrIL0flrwygxvtEaFmHdRZOAYR0HLakRmoMso43g/EH1CV8QES6reV?= =?us-ascii?Q?fo0fHxvsruKV+z7Dr9O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Microsoft-Exchange-Diagnostics: 1;PS1PR0601MB1451;7:bLOdLo0DZJf0+bSeGkNA+2WQ+OtBxx+CuclyhBh7yOs0QnOe1wKm7GWlC698YxEA3zi+Vlyty12EDvq7B2ql+7KcWPYC6qSVfh1x7NnvhRqkDDljupXAiifgPWh583mA+ClvhaXQHf9HuPxuF4poH8pn04UfvN5fQxiqp55I1mPo+cQU8WUEr5bNBu1Zy1/t/VH7mnVYMXh/svwiNVpIBIJoTFk6LOEJMc0tWxFNFJycDafCxy78TfViGOCZhMXbeLJd0ZKGcMAcQHap2EUgvhCaSlo86RA6LF5ZQyxKaXJ9qGVmGUIK45KL1l5OaMXg9+bgic57Qx0zKTlcvh3R4Ie6J8TDYcDq96FS+LfivPVRppXXa4VYwP1KiXZePvaKt5B5/wZgQlNfRyQbueXJjC/zxdB0S8gAo12mvWhPoML50/eLKQ7DD4GrVxB9XkeSURN0SZBG0PFl+/KekbkY4w==;20:UO1pDL2SDmk0YWHvv5msm7GJj3IVTgXDa4B/NQprURz0c6jehTRuK4laXxt+AGZVCzKsDPFgyT7YhlHkz9VwAgw0X1Zy7WZe/nOngabstH60/UvCOUkwsHdBqI5fpkTwQStS2lBYoEl5x1SUFwx5fO3jBv7zL9DA2Sx0qJ08igs= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Dec 2016 00:22:21.4165 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: PS1PR0601MB1451 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1296 Lines: 47 Hi Stephen > > From: Kuninori Morimoto > > > > Current simple-card is supporting this style for clocks > > > > sound { > > ... > > simple-audio-card,cpu { > > sound-dai = <&xxx>; > > clocks = <&cpu_clock>; > > }; > > simple-audio-card,codec { > > sound-dai = <&xxx>; > > clocks = <&codec_clock>; > > }; > > }; > > > > Now, it can support this style too, because we can use > > devm_get_clk_from_child() now. > > > > sound { > > ... > > clocks = <&cpu_clock>, <&codec_clock>; > > clock-names = "cpu", "codec"; > > clock-ranges; > > ... > > simple-audio-card,cpu { > > sound-dai = <&xxx>; > > }; > > simple-audio-card,codec { > > sound-dai = <&xxx>; > > }; > > }; > > > > Signed-off-by: Kuninori Morimoto > > I don't see any reason why we need this patch though. The binding > works as is, so supporting different styles doesn't seem like a > good idea to me. Let's just keep what we have? Even if a sub-node > like cpu or codec gets more than one element in the clocks list > property, we can make that work by passing a clock-name then > based on some sort of other knowledge. OK, thanks. Let's skip this patch. But I believe this idea/method itself is not wrong (?)