Re: [PATCH 4/7] iio: imu: adis16475: Use a kfifo buffer for the devices with a FIFO

From: Jonathan Cameron

Date: Sat Nov 28 2026 - 16:52:35 EST


On Mon, 23 Nov 2026 15:25:28 +0200
Radu Sabau via B4 Relay <devnull+radu.sabau.analog.com@xxxxxxxxxx> wrote:

> From: Radu Sabau <radu.sabau@xxxxxxxxxx>
>
> The ADIS1657x variants read their FIFO from a trigger handler, which runs
> from iio_trigger_poll() called in the FIFO interrupt thread, and the
> capture depends on the selected trigger.
>
> Switch them to devm_adis_setup_kfifo_buffer(): the FIFO interrupt thread
> now reads the FIFO and pushes the samples to a kfifo buffer. The interrupt
> is requested disabled and is enabled once the device FIFO is running, and
> disabled before it is stopped, from the buffer setup functions. This
> replaces the trigger's set_trigger_state(), which did the same through
> adis_enable_irq().
>
> The trigger is still registered and trigger/current_trigger is unchanged
> for users: the buffer simply does not use it any more, so writing it has
> no effect and a buffer can now also be enabled without selecting one.
Same thing about wanting more explanation of why we need to use host
side masking for the fifo interrupt. Can we not disable it on the device
side?

Otherwise LGTM