lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1942442.tdWV9SEqCh@fw-rgant>
Date: Mon, 08 Dec 2025 09:44:48 +0100
From: Romain Gantois <romain.gantois@...tlin.com>
To: Jonathan Cameron <jic23@...nel.org>
Cc: Liam Girdwood <lgirdwood@...il.com>, Mark Brown <broonie@...nel.org>,
 Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
 Conor Dooley <conor+dt@...nel.org>, David Lechner <dlechner@...libre.com>,
 Nuno Sá <nuno.sa@...log.com>,
 Andy Shevchenko <andy@...nel.org>,
 Thomas Petazzoni <thomas.petazzoni@...tlin.com>,
 linux-kernel@...r.kernel.org, devicetree@...r.kernel.org,
 linux-iio@...r.kernel.org
Subject: Re: [PATCH v4 3/6] iio: add processed write API

Hello Jonathan,

On Sunday, 7 December 2025 19:52:16 CET Jonathan Cameron wrote:
> On Mon, 24 Nov 2025 15:48:07 +0100
> 
> Romain Gantois <romain.gantois@...tlin.com> wrote:
> > Add a function to allow IIO consumers to write a processed value to a
> > channel.
> > 
> > Signed-off-by: Romain Gantois <romain.gantois@...tlin.com>
> 
> I'm lazy so I'll just ask the question rather than try to find an answer.
> Is there any existing consumer of DAC channels that can use this?

I'm currently considering upstreaming an extension of iio-rescale which 
supports writing to the channel. This could be used to represent some frontend 
to a DAC output e.g. an OpAmp inverter, which would be useful for my regulator 
use case. At first glance, this looks like it could require this processed 
write API, but I'm not 100% sure yet.

> It might be easier to land as a refactor than with the new driver and
> reduce what is in the more controversial patch for the regulator.

Agreed. For now, I'll be sidelining the regulator driver and focusing on 
upstreaming support for IIO channels with analog front ends, so that there is 
at least a way for userspace to directly write the require current/voltage 
levels to an IIO channel.

Thanks,

-- 
Romain Gantois, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ