Re: [PATCH v2 2/2] iio: adc: ti-ads112c14: add support for buffered read

From: Jonathan Cameron

Date: Sun Jul 26 2026 - 21:12:18 EST


On Fri, 24 Jul 2026 10:55:07 -0500
"David Lechner (TI)" <dlechner@xxxxxxxxxxxx> wrote:

> Add support for buffered reads using a triggered buffer.
>
> The device has a continuous conversion mode, but that can only be used
> with one channel at a time since there is nothing like a sequencer to
> support that in hardware. Instead, we use single-shot reads like we do
> for direct reads to be able to read multiple channels.
>
> Since CRC is always enabled, buffered reads include the CRC byte along
> with the raw data without verifying it. This allows userspace to perform
> it's own CRC verification per-sample and drop bad samples rather than
> failing the entire buffered read for one bad sample.
>
> Support for continuous conversion mode could be added in the future if
> needed.
>
> Signed-off-by: David Lechner (TI) <dlechner@xxxxxxxxxxxx>
Looks fine to me other than the thing sashiko caught.

J