mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Radu Sabau via B4 Relay <devnull+radu.sabau.analog.com@kernel.org>
Cc: radu.sabau@analog.com, "Nuno Sá" <nuno.sa@analog.com>,
	"Michael Hennerich" <Michael.Hennerich@analog.com>,
	"David Lechner" <dlechner@baylibre.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	"Ramona Gradinariu" <ramona.bolboaca13@gmail.com>,
	linux-iio@vger.kernel.org, linux@analog.com,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 4/7] iio: imu: adis16475: Use a kfifo buffer for the devices with a FIFO
Date: Sat, 28 Nov 2026 21:52:26 +0000	[thread overview]
Message-ID: <20261128215226.335b6174@jic23-hlaptop> (raw)
In-Reply-To: <20261123-adis-fifo-v1-4-f6ad9e493e19@analog.com>

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

> From: Radu Sabau <radu.sabau@analog.com>
> 
> 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

  reply	other threads:[~2026-11-28 21:52 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 13:25 [PATCH 0/7] iio: imu: adis: " Radu Sabau via B4 Relay
2026-11-23 13:25 ` [PATCH 1/7] iio: imu: adis16475: Use the reset timeouts of the ADIS1657x Radu Sabau via B4 Relay
2026-11-26 13:34   ` Joshua Crofts
2026-11-28 21:49     ` Jonathan Cameron
2026-11-23 13:25 ` [PATCH 2/7] iio: imu: adis: Add a kfifo buffer setup helper for FIFO devices Radu Sabau via B4 Relay
2026-11-26  9:33   ` Sabau, Radu bogdan
2026-11-28 21:47   ` Jonathan Cameron
2026-11-23 13:25 ` [PATCH 3/7] iio: imu: adis16475: Pass the device and timestamp to the sample helpers Radu Sabau via B4 Relay
2026-11-23 13:25 ` [PATCH 4/7] iio: imu: adis16475: Use a kfifo buffer for the devices with a FIFO Radu Sabau via B4 Relay
2026-11-28 21:52   ` Jonathan Cameron [this message]
2026-11-23 13:25 ` [PATCH 5/7] iio: imu: adis: Drop the FIFO handling from the data ready trigger Radu Sabau via B4 Relay
2026-11-23 13:25 ` [PATCH 6/7] iio: imu: adis16607: Add FIFO-based buffered capture Radu Sabau via B4 Relay
2026-11-28 22:00   ` Jonathan Cameron
2026-11-23 13:25 ` [PATCH 7/7] iio: imu: adis16607: Report loss of external sync Radu Sabau via B4 Relay

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261128215226.335b6174@jic23-hlaptop \
    --to=jic23@kernel.org \
    --cc=Michael.Hennerich@analog.com \
    --cc=andy@kernel.org \
    --cc=devnull+radu.sabau.analog.com@kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@analog.com \
    --cc=nuno.sa@analog.com \
    --cc=radu.sabau@analog.com \
    --cc=ramona.bolboaca13@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®