Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2988154iog; Mon, 20 Jun 2022 08:51:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v6SNEa3zfXtH202i+mZPfzkjWNBb+njy3kubeVCipJFduFdxnWW+AYIUn8Ejfxe/dFqFoS X-Received: by 2002:a17:906:1c5:b0:715:7c69:870e with SMTP id 5-20020a17090601c500b007157c69870emr20949327ejj.348.1655740287363; Mon, 20 Jun 2022 08:51:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655740287; cv=none; d=google.com; s=arc-20160816; b=Xl8jhrUIcopKkxD/LH6yNDWTOuT3b8z18tsxyigwDBHAV7Ey6nIp7CEOhpc5Sx6xft 5wygCnxC+Hn/tjKGvksMIgGuANv7qYbEx39rzubeYHEM9pCvjqFeXTTuCX89aA53nk9B t38oDefNixVkE/oyyIccmAs1MznJ7/BfHh3a3/pc4Vb9/noXUZRzPWpiC+sNGNZ07px7 qILfPGzFFjlzClzcOu6Fmn5rpN97NFrGt2qqo4s1KOIT/FfTrRvb7/JGPT8pXbDgN7gy q+Kw31XPvZBiXGdzgAFiqJ8rvJ1ls9QRGUFH5gHvwvyIv/AKM9Rl7H1Y/KFw9SiWomhx 3Z9A== 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=+u4WANzfwH7FKE+TeRbx5Niw0sMxdxqizYuU18xN6+Q=; b=OWEu4ihfuJKUHBNeoTAotYGb0kuKVOy4HkR8gVq1uqgvSroYiAbJHboRUI4rE/Y1Nc N8O0JkRxvXWWqWtrzyZLFCJ19s8s/EjiO1glZSzmHMEJImbb2zDbUZpbaanlRAZE7mIX 1S2Ll57Iuw+O4dY6rhVeLiLxISZ4GmLX23QJuStdZ4RYEOnPVbG0yki+gRtC3VIi4C3L vCo1JbVXKI9gZyopvaCKrsrETqsS28LqUSqRh6/chq9ZB7VGLIC6u5xBaK+MrPkecRLg xWwhNC+34GOXTpXOXcxX1jdJXgG6ifWqzDxpxilc09fu7CCH+KRy9jo6jE/iwkUNS43e VgTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b15okAyb; 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 z27-20020a17090674db00b00711f5909130si12492573ejl.383.2022.06.20.08.50.54; Mon, 20 Jun 2022 08:51:27 -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=b15okAyb; 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 S243953AbiFTPUG (ORCPT + 99 others); Mon, 20 Jun 2022 11:20:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243935AbiFTPTv (ORCPT ); Mon, 20 Jun 2022 11:19:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECD5013FAC; Mon, 20 Jun 2022 08:12:48 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 847C161185; Mon, 20 Jun 2022 15:12:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75B6FC3411B; Mon, 20 Jun 2022 15:12:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655737967; bh=SHOEIrF38xPmyZAQNJywwdY8NAEVju9HZycyF5Sbvrk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=b15okAyblhXu4iVfaa7hz2TNmmGhHGJbkDcf9sEW+gPd0t7paF88tUZ2vUcyqhknM PRp1o3RxhakQ+KhIl0zgeTaCncv7uuBal+/v8fTKdhLEQPJqMudlqIcwdvtfbBinYE qFU95Fj31xTnFK3WZhdExhXLpWMRLGO5cXjVBzSzuXSI44aqZ0ltYBeC6kZ/NDv4tm Sxy7k9rWSMpEzJ8kYt08MtIEq/3dnMFM/Zpc7eNVVfSiELM32qKK79Cf3fN0ffNHAF w64p5HnEtO2D8gJBYOYdQnxv1X3CCjbcbwTmjDaRSGt+4igbmDmnIjg2Kvi6DPViO7 7m3RY7OWzODTw== Date: Mon, 20 Jun 2022 16:12:41 +0100 From: Mark Brown To: Pierluigi Passaro Cc: Alifer Willians de Moraes , "linux-kernel@vger.kernel.org" , "alsa-devel@alsa-project.org" , "devicetree@vger.kernel.org" , Eran Matityahu , "festevam@gmail.com" , "lgirdwood@gmail.com" , "linuxppc-dev@lists.ozlabs.org" , "nicoleotsuka@gmail.com" , "patches@opensource.cirrus.com" , "perex@perex.cz" , "robh+dt@kernel.org" , "shengjiu.wang@gmail.com" , "tiwai@suse.com" , "Xiubo.Lee@gmail.com" Subject: Re: [PATCH 3/4] ASoC: wm8904: extend device tree support Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="/IGE4rk+pMEElHo5" Content-Disposition: inline In-Reply-To: X-Cookie: Good day to avoid cops. Crawl to work. X-Spam-Status: No, score=-7.7 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,T_SCC_BODY_TEXT_LINE 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 --/IGE4rk+pMEElHo5 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 20, 2022 at 02:32:17PM +0000, Pierluigi Passaro wrote: > > > +=A0 - drc-cfg-regs: Default registers value for R40/41/42/43 (DRC) > > > +=A0=A0=A0 The list must be (4 x num-drc-cfgs) entries long. > > > +=A0=A0=A0 If absent or incomplete, DRC is disabled. > > What is the purpose of having num-drc-cfgs?=A0 We can tell how large > > drc-cfg-regs is so it just seems redundant. > Can you please point me to any reference implementation doing this ? of_property_read_variable_uX_array() should do what you want, you can also use of_property_count_elems_of_size(). The main DT API header is linux/of.h. --/IGE4rk+pMEElHo5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmKwjmgACgkQJNaLcl1U h9AyNwf/SOmx1DddaNrhkB/9+jvoQAmDXpEJJAEanUhwzkSxLo4UmEeOQflNn9qA 2PY0VObRD2/nzISwUccumqGAJzzx+nwIcAgRAd//JeIG/8Z69a4VEtZMxzjuiwMo QDPEWcIoP3Zal1K59ZbXoNdf5ZZuAGsrPg3o9EQRuawrwVBQdanQrGVn2ECfCwi8 1l4G/8Xz3K8/F4/qtWHUHCiSH0aG/t+dzUCUmMgjejm8qslMjQnTzzYQC9/cml/D QoZBU2l6Gn+/e07dqQsXd95nogtd78aJNnIN9a0NxMNmYMz6hluR4Al0u+hXL3Ne DRMA8B/6nCzGQb7JkQA3heJjObYa9w== =NZIk -----END PGP SIGNATURE----- --/IGE4rk+pMEElHo5--