Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp931283rwi; Wed, 26 Oct 2022 08:49:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5pOSY0Usx3zuqCHDiEp22BI2kwah/Ez9UqFBIdOCovsYDClzgMrUXjoWAITyK9CwTwydnX X-Received: by 2002:a17:906:30c8:b0:73c:81a9:f8e1 with SMTP id b8-20020a17090630c800b0073c81a9f8e1mr38070322ejb.649.1666799369725; Wed, 26 Oct 2022 08:49:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666799369; cv=none; d=google.com; s=arc-20160816; b=f+R/W8SPD/os1F3/oMJnFC0DKVhnelFFwXWD5OGJLCI7lH1CEa/SQLspQrdbGwc1Ap Nlbs8lBx1Smakx0V1W8UOVN48XYuBcalZF8C+7zeoanTQNCeqCIYAYh22492cIzcMOcl bq33xO2w49eIhR45pCGYyvvsAkQtVCBrJms5T+Hq1APVm2mEI+cUURsb546qDyGV6xum dmXeYmaOrIYeWBRu4ziWf+MPLZ/V3xZrNCsKR9D1XOnC6DeZc2hmS0El0igeCAMn4pSO 9M/4rtlkuFwKrJsD/bnC+lXEqKMvIj1udrdH1AESW4/5p5ZsAtsqkO1A6ztFXU47anw3 X5Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vWYRbDC0xS652uZCGKyIu5QxOzhiKskpM0w9hAJesCg=; b=rh6iAq8Yw5EujZtMdAfA/IallRqa0DHVBfyualZ1/OTq39ZNj5zrW5c31RfFPlI2rB W3y2HU6ry4TWpuDNISGVIgz2kjnVyBBMevDPKrT1BHx1C0nglX7fUKv1Ih0qKKV3Rpuf YO89wrftSWADxEr6in6IvhkU8eJUsfig8ROjewdrx45EWH6HCNFysVX1+D2aYVu4389d Dwbrbr6xL1UGZKE++u2BQTuAGLsGvxbDc0YlxArqgpf18D2fcWFrVjo3wOGKeTuZz+qq 0IarNBtC0qgguDEpN/uQ+lhZCWqI2Iu5YVvrsUFjkzHTSSUeePwZtjWU/R9VJ3PeEL4u B4AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="XbUqWf/U"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z16-20020a1709067e5000b0078bec673145si4932336ejr.519.2022.10.26.08.49.02; Wed, 26 Oct 2022 08:49:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="XbUqWf/U"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234328AbiJZPLy (ORCPT + 99 others); Wed, 26 Oct 2022 11:11:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233319AbiJZPLv (ORCPT ); Wed, 26 Oct 2022 11:11:51 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C9BA127BCB; Wed, 26 Oct 2022 08:11:50 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4B869B82256; Wed, 26 Oct 2022 15:11:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3C25C433C1; Wed, 26 Oct 2022 15:11:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666797108; bh=4Z5zLso9XNCBCHEEuJMM/rcAgVuqzF4fw0BCdufFO5Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XbUqWf/UNHlwTkNxQkTZ1K6W0GJk+JvCByByAYT51qdtLQpqEpX602AOL0P95C/sD CY73cmiO8ktDHurGqpaMAY5PlkDfrAfpHNGU5INpNLac6CNVx10EBPknWx0UYEMKhw uTuz+pKi+5Pkj3xjY4oIl/+Yrfy7yZchBQmf12bB4vvhC6AEgEprC/MI7ZUuTrNPpv 25KGRiiF/D0PVka6WdMYU/fU1vdOwqwLLY3fsvUnMwSRnJa9MhIdlEYn3FO3EoNQX2 3RpPu6fTs/ziU8Tz4+xVLlkQxF7eBviR8ZilkIUhv3F5R+SdneQMGdULvZc3gn0k5i zWRfnsWMWBuFA== Date: Wed, 26 Oct 2022 16:11:42 +0100 From: Mark Brown To: Aidan MacDonald Cc: lgirdwood@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, kuninori.morimoto.gx@renesas.com, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 1/2] ASoC: simple-card: Support custom DAI system clock IDs Message-ID: References: <20221022162742.21671-1-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="STgcsZayb3dhE5DX" Content-Disposition: inline In-Reply-To: X-Cookie: Prunes give you a run for your money. X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --STgcsZayb3dhE5DX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Oct 26, 2022 at 03:42:31PM +0100, Aidan MacDonald wrote: > Mark Brown writes: > > There is a strong case for saying that all the clocking in CODECs might > > fit into the clock API, especially given the whole DT thing. > The ASoC APIs don't speak "struct clk", which seems (to me) like a > prerequisite before we can think about doing anything with clocks. Right, they probably should. > Even if ASoC began to use the clock API for codec clocking, it's not > clear how you maintain backward compatibility with the existing > simple-card bindings. You'd have to go over all DAIs and mimic the > effects of "snd_soc_dai_set_sysclk(dai, 0, freq, dir)" because there > could be a device tree relying on it somewhere. Of course, you'd need to define bindings for devices with multiple clocks such that things continue to work out compatibly. > So... given you're already stuck maintaining .set_sysclk() behavior > forever, is there much harm in exposing the sysclock ID to the DT? Yes, it's ABI and the more baked in this stuff gets the more issues we have when trying to integrate with the wider clock tree in the system - for example when devices are able to output their system clock to be used as a master clock for a device which can use the clock API as an input. It's fine in kernel but we should be trying to keep it out of ABI. --STgcsZayb3dhE5DX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmNZTi0ACgkQJNaLcl1U h9D/qgf/YOsJbQ4nQ75FNpRwHXAqvJR2rYBAW8fcMr3YrbLRTFOb03bpLFqa26nB tfJdkMrYr61OwPJY57vjlxoEJjSgdMHNuk7wB/Jo+n1PoPiHTg2SiLVbbG/pOqfw iENggEi02xvC4zGMmdEqzewObfbACRu0ZdIeKl4cXmFarL4/INkruO9WgABAFjtF ER7DoDv7Klfk28I6fP49gzEGIV8Omn6qHViJkz4fcrPbGpQcJzJtLU45amKZi/Eu NAy0T5bI48u/fcOZYup5lQYK/QyOb7XiI5CjLnd/MOjsBUjzUlukyeKnD/RLT6o2 Sd7w6TFggE4pjNnE6GfxQ15P+Iw1Rg== =hC+q -----END PGP SIGNATURE----- --STgcsZayb3dhE5DX--