Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3477262ybt; Tue, 30 Jun 2020 03:56:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2hyBn/F2iIEc3BeTaSfpruv7xMfm9SZ4xrDz4OUAp2DxooSW24rfdGTvY7iUT0T2tU8Ye X-Received: by 2002:a05:6402:6c4:: with SMTP id n4mr23091228edy.353.1593514575403; Tue, 30 Jun 2020 03:56:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593514575; cv=none; d=google.com; s=arc-20160816; b=Nd4iBUKNQFjYBgThHTMq2TvoYT4pLJUsQAhqg7dKYxsvWVPeTk3fvPZbfDYlBQhZVE DtUFp8GV7sViV0FgpM6O4FGVQGkBzBKIM8FZp6K9ZJ8Pxdpgzx7UnWK+qrmYFwn64nCv P8vhh1thHEFtoqvt3j8qFuW6pl+OJ3JwC5H2zlaFZmA7ATnLCyRd0Ke8MjFgRQNwwqsq OeBMpOSNRymp9G/Yq8imNla8sBhWPbOfRiyu5sSg19BltfHEQ1SVBw6+mIvbNNZdrD9t QxKZKZl2eWw+xOQacv4iXArWbk8+y222dRZsXsNA8kM6q0FHTOAHPb5PCsl3n/b5NnHp sDaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=kZEqYVGF+3+RE17a39GpI4yT3LZRZB2XU3g1ELxun5k=; b=uvHBV1+0WY5VafM5B7EVUDDF9YyncHGlBmHXjWB3rgN31NqPqVO2QHaGNude5xIiup g/qgrD+AtrFqDaSSJBaDEr8X/S95Mv68btiPrZBrxLcl7iZiDnbk2f2ohKRoNKdSGpkw hD9QJGQQKtYbNF6bmr5MQfS9ZmMgOcbQP1riKiH2M/dPCD9AT78nypM6pOa1KPMMTScO GQg/b2Za4Ljl+nk1Mdz2ls2554k0UDWuK8ytf7MgShKINTFQIUcRzJUO6nZz88+2y1nD +w8VhP5NxeVKmGw5GAHUJ8b5LF//a9BnCroDY2UUL/3xml7BsIt+4XasUY17uXRX4X5v hGhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NQ4PP3lA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j8si1541860ejs.237.2020.06.30.03.55.52; Tue, 30 Jun 2020 03:56:15 -0700 (PDT) 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=@kernel.org header.s=default header.b=NQ4PP3lA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732703AbgF3Kzi (ORCPT + 99 others); Tue, 30 Jun 2020 06:55:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:59816 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732641AbgF3Kzf (ORCPT ); Tue, 30 Jun 2020 06:55:35 -0400 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6367C2067D; Tue, 30 Jun 2020 10:55:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593514535; bh=wWEquVMFKXy588FnMroMAEIB7yZ2El1wF3pvAg8G+us=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NQ4PP3lA+9OQXQXTKh9wAZLuw5BlWl3O8LNVmIN+HRZd1eYn6Rhr+lkn1m5+1yi8w 9Yql01aDsfT08gki7cfAonM/MG2NmByEPY39KRuJ6ZpmTVLhi4cedXQS6qnqXY9kzd 5dXxbh8MIwmxGK/dxGK9SO8pPCVVpVanMwriZsA4= Date: Tue, 30 Jun 2020 11:55:32 +0100 From: Mark Brown To: Sameer Pujar Cc: Kuninori Morimoto , perex@perex.cz, tiwai@suse.com, robh+dt@kernel.org, lgirdwood@gmail.com, thierry.reding@gmail.com, jonathanh@nvidia.com, digetx@gmail.com, alsa-devel@alsa-project.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, sharadg@nvidia.com, mkumard@nvidia.com, viswanathl@nvidia.com, rlokhande@nvidia.com, dramesh@nvidia.com, atalambedu@nvidia.com, nwartikar@nvidia.com, swarren@nvidia.com, nicoleotsuka@gmail.com Subject: Re: [PATCH v4 11/23] ASoC: simple-card: Loop over all children for 'mclk-fs' Message-ID: <20200630105532.GG5272@sirena.org.uk> References: <1593233625-14961-1-git-send-email-spujar@nvidia.com> <1593233625-14961-12-git-send-email-spujar@nvidia.com> <875zba1y28.wl-kuninori.morimoto.gx@renesas.com> <58000bd3-861c-bbc2-75e1-128cf0199a76@nvidia.com> <87lfk5z4ov.wl-kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="64j1qyTOoGvYcHb1" Content-Disposition: inline In-Reply-To: X-Cookie: Walk softly and carry a megawatt laser. User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --64j1qyTOoGvYcHb1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jun 30, 2020 at 09:53:13AM +0530, Sameer Pujar wrote: > On 6/30/2020 7:38 AM, Kuninori Morimoto wrote: > > External email: Use caution opening links or attachments > > > > > + if (cpu != codec) > > > > > + of_property_read_u32(codec, prop, &props->mclk_fs); > Sorry if I was not clear before. I agree with Moromito-san that the new code (especially the above bit) is very confusing, I'm not sure how the reader is supposed to figure out what the purpose of the check is or how the CPU could ever be the CODEC. > simple_parse_mclk_fs() is used by both simple_dai_link_of_dpcm() and > simple_dai_link_of(). To make the same API work for both the cases, I had to > use (A) in DPCM function. Now (B) does not get used for > simple_dai_link_of_dpcm(), but will get used by simple_dai_link_of(). > If it is simpler I will just avoid 'cpu != codec' check and keep the > function simple_parse_mclk_fs() as it is. That'd definitely be simpler, or supporting this with a CPU node as well. --64j1qyTOoGvYcHb1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl77GiQACgkQJNaLcl1U h9ARuwf9F6cRaR8lFHxz06jNWSZeUUWjcGZNbZVTPkDMRXKH+RKTvtX5ac3/WiX1 NjQFs+TK8LV6s36/D9pbDL+8tWytYKpmU5R4T82nWEl2QJLpcn+baR5mZ74u5ZUH HyUKVyPr/xujUOBmFCLBZkLexA+f8pICIwqskTUefJe9yJwvTj2wTtj9zD85PaMz 2Mu+EtDEvw1/2bvn1jaHvpYHmhDqHALoExw6AIRiuWSdOBNESBMksOE0Cn/qBuwA BsOQz+jwqyAGR0K8VpGGhFnt7xXCRK0eFWzD95FIxpQnq3CqLrphjK6wA5nL+vV1 4n4ZkVcumkebzoPUrfnpt3DSzYCwbg== =gAuw -----END PGP SIGNATURE----- --64j1qyTOoGvYcHb1--