Re: [PATCH v6 2/4] iio: adc: ltc2378: Add support for LTC2378-20 and similar ADCs
From: Jonathan Cameron
Date: Thu Jul 09 2026 - 22:24:14 EST
On Thu, 9 Jul 2026 17:49:53 -0300
Marcelo Schmitt <marcelo.schmitt@xxxxxxxxxx> wrote:
> Support for LTC2378-20 and similar analog-to-digital converters.
>
> Signed-off-by: Marcelo Schmitt <marcelo.schmitt@xxxxxxxxxx>
https://sashiko.dev/#/patchset/cover.1783629101.git.marcelo.schmitt%40analog.com
The comment about not holding the local lock long enough looks right to me.
You should never rely on the internal locks of IIO for modes to serialise.
Maybe that implementation will change one day (probably not but it's a layering
mess to rely on that).
I'll take another look at the rest in next few days.
(other sashiko comments are fine I think)