Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795891287; b=ycDruM4TVY47ejsUyGWF3COOyQrOpf5pJBdByEPq4NB9xMyVAij4GFLjhHjYxWRf7Txl yMw6bH5PQWnKAgpSKgc8CNX5dp4H9duLujYEHWSBQ8KNN6NyRmbzRFqIeFv1NMHC9je/6 10kg4K+OT9EJlG86RnM1UPtNjm2yhG5RXLfaVL+HbtQHBPQ2ugU3/HPXfWJAXp/k1hE4l bmM/IoMZ+9M1Rs25rI5MbJTh42fU2JDVJVbliwthkJ/TWFXGv/GID+EMOELJGEGK7J1QZ AYdZ2xINLQBUEkX7B04ss/wX/H3kZjAYkwLfKyfWoIFvtG4bJcb/bFyRK9m/MLl5OlQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795891287; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: In-Reply-To:References:X-Mailer:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=reMvlZ8TT8KIK4YAWk755VpPuQIWVkt++qefykUN4OI=; b=Ynq9nOiYsA6glG6vdgnFSeIvp8AjfzXlb1qDfYdKIvfW4LP9gD1lu1duYUJBYzx/eKFX UT245fjg2S1T40dWF6q8qkm3Px7SLnUeWog4BqC3V0vHWyk0Aqs9arA8lcNccMjCu4Y0r 6nQTxEmVXlfucujOV3JP8dcymKL10r1orM71ewqYDHzpir6GZuLeeRshWgBGi8Pq6XWaD NO35Mxfj4yfRH1gPieYsG9994291cO72x6RAQ1y+GMDpon8tI05TN4qrq/Oq9aGuTZhOT rUELBB1Q1epimv9B3pyBoYp2q33jrjCjM9TSHPIH5JOQsXyEcbb7vlJQEyYL+pSSAOw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="kKkGF/q2"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 098EC606A31C; Sat, 28 Nov 2026 18:41:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=kKkGF/q2 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45D4E1F00893; Sat, 28 Nov 2026 18:41:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795891286; bh=reMvlZ8TT8KIK4YAWk755VpPuQIWVkt++qefykUN4OI=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=kKkGF/q2oIu0v5V0Y+UNTMNVvup6YaM/lneRFNp/RI/PVQES2izk6xqjfsy9JPAcF d2y9IWyXeg01jW/08V1x31MxzyMYYRJjSEJAe8D79yskTIqwdg56RSLTMO4eFK86zM FWuDTFazz25qjppj/h1cGVfzf2g47rIWbhMDSiHyAvrAMV3aeYr/2ntmqnF55JCLLL n3nbB7uAgzdfXv8kgHt3HfPA1jwlOsIRt105N+8EccomJujl821RfvIbFK1cKO2/CE VGJaHTQzWuaRhyyvnDIQIx9FFgcE5bkYRTYysSJfb2ciErGOLy4gQvOihqA8fn/lS2 bAbMk0HBphF6g== Date: Sat, 28 Nov 2026 18:41:20 +0000 From: Jonathan Cameron To: Biju Das Cc: Lad Prabhakar , Biju Das , David Lechner , Nuno =?UTF-8?B?U8Oh?= , Andy Shevchenko , linux-iio@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Geert Uytterhoeven Subject: Re: [PATCH] iio: adc: rzg2l_adc: Add fwnode_xlate() callback Message-ID: <20261128184120.7110c8f7@jic23-hlaptop> In-Reply-To: References: <20261126134826.46044-1-biju.das.au@gmail.com> <20261128034348.5e1de2c7@jic23-hlaptop> X-Mailer: Claws Mail 4.4.0 (GTK 3.24.52; x86_64-pc-linux-gnu) X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sat, 28 Nov 2026 08:37:01 +0000 Biju Das wrote: > Hi Jonathan, >=20 > On Sat, Nov 28, 2026 at 3:43=E2=80=AFAM Jonathan Cameron wrote: > > > > On Thu, 26 Nov 2026 13:48:19 +0000 > > Biju Das wrote: > > =20 > > > From: Biju Das > > > > > > On RZ/G3L ADC1, IIO channel indices don't map 1:1 to hardware channel > > > numbers. Add a fwnode_xlate() callback that finds the registered chan= nel > > > whose number matches the specifier argument and returns its index. > > > > > > Signed-off-by: Biju Das =20 > > Sounds like a fix. So why no fixes tag? If it needs one then reply > > directly to this email with one and the tools will pick it up when I ap= ply. =20 >=20 > Yes, it is a fix. I missed that. >=20 > Fixes: 39e16807997c ("iio: adc: rzg2l_adc: Add RZ/G3L ADC support for TSU= ") Applied to the fixes-togreg branch of iio.git and marked for stable. Thanks, Jonathan >=20 > Cheers, > Biju >=20 > > > > Thanks, > > > > Jonathan > > =20 > > > --- > > > drivers/iio/adc/rzg2l_adc.c | 14 ++++++++++++++ > > > 1 file changed, 14 insertions(+) > > > > > > diff --git a/drivers/iio/adc/rzg2l_adc.c b/drivers/iio/adc/rzg2l_adc.c > > > index 340813f6f890..f00cfb897124 100644 > > > --- a/drivers/iio/adc/rzg2l_adc.c > > > +++ b/drivers/iio/adc/rzg2l_adc.c > > > @@ -286,9 +286,23 @@ static int rzg2l_adc_read_label(struct iio_dev *= iio_dev, > > > return sysfs_emit(label, "%s\n", rzg2l_adc_channels[chan->chann= el].name); > > > } > > > > > > +static int rzg2l_adc_fwnode_xlate(struct iio_dev *indio_dev, > > > + const struct fwnode_reference_args *i= iospec) > > > +{ > > > + if (iiospec->nargs !=3D 1) > > > + return -EINVAL; > > > + > > > + for (unsigned int i =3D 0; i < indio_dev->num_channels; i++) > > > + if (indio_dev->channels[i].channel =3D=3D iiospec->args= [0]) > > > + return i; > > > + > > > + return -EINVAL; > > > +} > > > + > > > static const struct iio_info rzg2l_adc_iio_info =3D { > > > .read_raw =3D rzg2l_adc_read_raw, > > > .read_label =3D rzg2l_adc_read_label, > > > + .fwnode_xlate =3D rzg2l_adc_fwnode_xlate, > > > }; > > > > > > static irqreturn_t rzg2l_adc_isr(int irq, void *dev_id) =20 > > =20 >=20