Re: [PATCH 18/21] iio: Replace IRQF_ONESHOT with IRQF_NO_THREAD

From: Marcus Folkesson

Date: Mon Jan 26 2026 - 05:53:53 EST


On Fri, Jan 23, 2026 at 12:37:04PM +0100, Sebastian Andrzej Siewior wrote:
> Passing IRQF_ONESHOT ensures that the interrupt source is masked until
> the secondary (threaded) handler is done. If only a primary handler is
> used then the flag makes no sense because the interrupt can not fire
> (again) while its handler is running.
> The flag also disallows force-threading of the primary handler and the
> irq-core will warn about this.
>
> The intention here was probably not allowing forced-threading for
> handlers such as iio_trigger_generic_data_rdy_poll() will intends to
> invoke hard-interrupt handlers.
>
> Replace IRQF_ONESHOT with IRQF_NO_THREAD.
>
> Cc: Lars-Peter Clausen <lars@xxxxxxxxxx>
> Cc: Michael Hennerich <Michael.Hennerich@xxxxxxxxxx>
> Cc: Puranjay Mohan <puranjay@xxxxxxxxxx>
> Cc: Jonathan Cameron <jic23@xxxxxxxxxx>
> Cc: David Lechner <dlechner@xxxxxxxxxxxx>
> Cc: "Nuno Sá" <nuno.sa@xxxxxxxxxx>
> Cc: Andy Shevchenko <andy@xxxxxxxxxx>
> Cc: Marcelo Schmitt <marcelo.schmitt@xxxxxxxxxx>
> Cc: Marcus Folkesson <marcus.folkesson@xxxxxxxxx>
> Cc: Kent Gustavsson <kent@xxxxxxxxxx>
> Cc: Gustavo Silva <gustavograzs@xxxxxxxxx>
> Cc: Nishant Malpani <nish.malpani25@xxxxxxxxx>
> Cc: linux-iio@xxxxxxxxxxxxxxx
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>
> ---

[...]

> drivers/iio/adc/mcp3911.c | 2 +-
Reviewed-by: Marcus Folkesson <marcus.folkesson@xxxxxxxxx>

Best regards,
Marcus Folkesson

Attachment: signature.asc
Description: PGP signature