Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp887383rwd; Wed, 7 Jun 2023 08:09:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4bwRALXrOd11gO1gp/7tx/3E7/Xy+xOaFY/JwjCcEi1Eab/t9OcNPbktdqPHDvR1QJxyJz X-Received: by 2002:a05:6a20:3d0e:b0:10d:951f:58bd with SMTP id y14-20020a056a203d0e00b0010d951f58bdmr3914426pzi.19.1686150578999; Wed, 07 Jun 2023 08:09:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686150578; cv=none; d=google.com; s=arc-20160816; b=CW2zn8fXmzdZECJ4eeFajCoQZIB3L1lvlyRfSnoTyWbh3eCyYzeP7E7OBiL6PQNXZS /dTwh4gTs8WkVS2hiqNkEE5ZANA82WBvUFnr6gy2Nl3KicxhaEMPVftKqnRJSH4kxktZ zyXLKsi8vt5aQ+M6a5MidXZsvoJnOjzqxudVXLJ9ZVkx3ZGCHhhG4GzNQaC54a6NAqxM Pt8Q5+eYJsf9XdomZ4Ajs0op/QkNCIRsMrZVQ2DVhhYYSMGOLdWFDQk291eI8xKiTai5 9s89U1+66EypKVzAgrFaxu5B4Thc0w6PR/UFKRo6XPcKhlTrzpgGZqFFZuUdmwNoR0hh Ah6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=j7gbXd0RpYvnzNDsTkINk8jfZlfPM/h26L3sVpQBEA0=; b=gvqEvlB6a5QLFGw762ihVrcSVIZPY0yft7E7rkH6+NLvvrfo+mtanVPN6f0Ckwvpdu /ZXStXrPVf7x3ZoHzQjuEcOXrI1c9DAb+wBi+/3H2zj1Pzx8JVW7bHPSi5Zm/p3zYXei SjZkKS8qPu6gXFukjIPXbWMLryXBTD+JfGHY1WVph6vejPfyAJPBO9v/TWq+cawjxkW7 RlOqcblW6U1LWqQdIwwn8zBQ4HppfB1BCOB7Kj3Aa4kyz/KNTxRcMBDs4+NFaCM9Tp9C EAXgC9/miZqpzSvLHSs8PGPAPcr1F8hkrJ2jJ2X+2588ZLmaNrKF2Djsk7Wxddl/v1qI NU5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Nus40yw6; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b7-20020a656687000000b00540ca2b00c6si9212164pgw.733.2023.06.07.08.09.23; Wed, 07 Jun 2023 08:09:38 -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=@bootlin.com header.s=gm1 header.b=Nus40yw6; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241220AbjFGO42 (ORCPT + 99 others); Wed, 7 Jun 2023 10:56:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241225AbjFGO4Z (ORCPT ); Wed, 7 Jun 2023 10:56:25 -0400 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::224]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 237681BF3; Wed, 7 Jun 2023 07:56:07 -0700 (PDT) X-GND-Sasl: herve.codina@bootlin.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1686149766; 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=j7gbXd0RpYvnzNDsTkINk8jfZlfPM/h26L3sVpQBEA0=; b=Nus40yw6Ykq619bNhbiuMgDNNxhkNfmD14Z5vbLwgY6hhW6sGzQVXPz6yezJQAuibm3fVO USQ6p9kQVGiMdTwif/CdYD2GjvVboIox6YRehy8tDI61HntMDikWkce1PcJVgdIMcHsoj1 SUfk2tN6yjS8jCngvcOnWfEygLeQk1nahPZvS7J0mI9gTi+53l/wpCZK7XxIQiIDL85pfH +Txfnc17HzzcMLgvfWxK/1bTwiA3qJ/q7eAYbsmvXXk/PizhuPbi/BAbIqXSLBGPG9uv/k afYTjjGKV7DIoUeGnHd7fHO+vkAjz7HKlDvvbQB6UYBOvwYmXKScsQntRRXYdA== X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id CC4CEE000C; Wed, 7 Jun 2023 14:56:01 +0000 (UTC) Date: Wed, 7 Jun 2023 16:56:00 +0200 From: Herve Codina To: Andy Shevchenko Cc: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Cameron , Lars-Peter Clausen , Jaroslav Kysela , Takashi Iwai , Kuninori Morimoto , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Christophe Leroy , Thomas Petazzoni Subject: Re: [PATCH v2 7/9] ASoC: codecs: Add support for the generic IIO auxiliary devices Message-ID: <20230607165600.535c8530@bootlin.com> In-Reply-To: References: <20230523151223.109551-1-herve.codina@bootlin.com> <20230523151223.109551-8-herve.codina@bootlin.com> <20230606155404.28ada064@bootlin.com> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Hi Andy, On Tue, 6 Jun 2023 17:34:22 +0300 Andy Shevchenko wrote: ... > > > > > > Btw, can you avoid using OF APIs? It's better to have device property/fwnode > > > API to be used from day 1. > > > > Hum, this comment was raised in the previous iteration > > https://lore.kernel.org/linux-kernel/20230501162456.3448c494@jic23-huawei/ > > > > I didn't find any equivalent to of_property_read_u32_index() in the > > device_property_read_*() function family. > > I mean I did find anything available to get a value from an array using an index. > > This is done by reading the entire array at once and then parsing as > you wish in the code, device_property_read_u32_array() is for that. > > > In the previous iteration it was concluded that keeping OF APIs in this series > > seemed "reasonable". > > Maybe, but consider the above. I see. Will switch to device_property_*() family in the next iteration. Thanks, Hervé -- Hervé Codina, Bootlin Embedded Linux and Kernel engineering https://bootlin.com