Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp260232pxf; Thu, 11 Mar 2021 03:18:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJzarni9keiFg5WsEpyyyTsuhK9TPJa6Q01aPI3U2JJtv5oyayHJ9sHYewibPspGZyO/Xw5/ X-Received: by 2002:a50:ee10:: with SMTP id g16mr7908851eds.215.1615461513095; Thu, 11 Mar 2021 03:18:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615461513; cv=none; d=google.com; s=arc-20160816; b=FopGK1g8vvbtuwzvdwtPz1Q9ygexrnZnPs3z5GeOiXHa9+fowx/Qlcb0SVJ1bQQOfb wYMoQ3u+1VyahtYv/W7ZI7iC7e4MeeMkmNWrn2Yz5JIGyWY4BN8JDOVjaCI3xgrzcPrh AHTslSQwl56tKaWeKYe7/cKYD5ws/zj99oKIIUUbuTulyNZIU2RYCNrnGj/OfFiIS499 vKoo2a+BEPoY8B1Oq8czb5EyKOqwoeC/ea0oOy1nJVQj9TpjbDSCGpnUrFKeulnCVNPj dHAz2Y6JAhwIlqIi7TMY2d7q+kK1/so3E4++eX8HhopK2VEJmxtVhzIyAtcyLNVN6iLP RBNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=Rcfxj52DqopNjOhZUxoHuR9lkTIwGeoSy4LzOhaFOmY=; b=YE5ZZ31ohOxlTbrsWIuU0XxyQicHaQRt5odaN17RR9tQg8IwUYwhUnQz0GlX/MhPgN q7EvZmqMnLtQYmjT4LLF6I5TdBDvFWmrNi6RHUgBFS5R/q2E/yC4iY+El67gyzgqzr5w uBslNyOAkSS40o5ts7sqyw2iowZlBOBgXRE7OX6r2nhkouPof7aMuMjn3fjB7TAiacK2 +FNHX7ofq03wXn7awKl2PKrO34T2kdcVK15ouiOa7gi376EL+WgTWIUObOWHrhkQOdZL KPFwKtpN7V4v2c0tIQlPHVecqNdVguqL2H0JgzSKJgZLSGQXLsrOiIP9bx370KBw4IrJ ReGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=ARvYEuyu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s1si1467600ejf.199.2021.03.11.03.18.10; Thu, 11 Mar 2021 03:18:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=ARvYEuyu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232630AbhCKLQw (ORCPT + 99 others); Thu, 11 Mar 2021 06:16:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232633AbhCKLQY (ORCPT ); Thu, 11 Mar 2021 06:16:24 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52E3CC061574; Thu, 11 Mar 2021 03:16:24 -0800 (PST) Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 6029C221E7; Thu, 11 Mar 2021 12:16:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1615461382; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Rcfxj52DqopNjOhZUxoHuR9lkTIwGeoSy4LzOhaFOmY=; b=ARvYEuyu+pMa0B2ZS3+5vKtk+3BXirjUsv561Kr7NZSIjFUZfdWAmkzGdMH7vrO1G2t/ky ft1QoO12xA8cE2RVR2ZAG57GEjnWCQD+lrWBurP/tmGmay8SsljWestVMOTkLNQ34EQNE8 GnYF0LKkTL1vagKu6fjp74SaiDozVz0= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 11 Mar 2021 12:16:22 +0100 From: Michael Walle To: Sameer Pujar Cc: alsa-devel@alsa-project.org, broonie@kernel.org, devicetree@vger.kernel.org, jonathanh@nvidia.com, kuninori.morimoto.gx@renesas.com, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, robh@kernel.org, sharadg@nvidia.com, thierry.reding@gmail.com Subject: Re: [PATCH 1/3] ASoC: simple-card-utils: Fix device module clock In-Reply-To: References: <1612939421-19900-2-git-send-email-spujar@nvidia.com> <20210309144156.18887-1-michael@walle.cc> <611ed3362dee3b3b7c7a80edfe763fd0@walle.cc> User-Agent: Roundcube Webmail/1.4.11 Message-ID: X-Sender: michael@walle.cc Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2021-03-11 12:05, schrieb Sameer Pujar: > It would work and initially I had similar patch, see [0] and related > series. Suggestion is to always use "clocks" property with devices > only. I see. But again, I don't think it is correct to change the clock of the codec by default. What happens if this is for example a compatible = "fixed-clock"? As you pointed out in the referred thread [0]. simple-audio-card has that clock and judging from the code it is exactly for this reason: to either change/enable it or not. With this patch you'll switch that to "always change it". Therefore, shouldn't there be a dt flag to indicate wheter simple-audio-card/graph should be in charge of the codecs clock input? And its fetching just the first clock, doesn't it? What happens if a codec has two clock inputs? -michael [0] https://patchwork.kernel.org/project/alsa-devel/patch/1611944866-29373-4-git-send-email-spujar@nvidia.com/