]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: Replace IRQF_ONESHOT with IRQF_NO_THREAD
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 28 Jan 2026 09:55:37 +0000 (10:55 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 29 Jan 2026 16:11:50 +0000 (16:11 +0000)
commitac9fabd578a03bfa0d599e3fcd9c4e106661e3d2
tree1106f1b5f550d6a2d8efad297e8a63b3e83e8e34
parent04d390af97f2c28166f7ddfe1a6bda622e3a4766
iio: Replace IRQF_ONESHOT with IRQF_NO_THREAD

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.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Reviewed-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
16 files changed:
drivers/iio/accel/adxl355_core.c
drivers/iio/accel/adxl372.c
drivers/iio/accel/mxc4005.c
drivers/iio/accel/stk8ba50.c
drivers/iio/adc/ad4170-4.c
drivers/iio/adc/ad7768-1.c
drivers/iio/adc/ad7779.c
drivers/iio/adc/mcp3911.c
drivers/iio/adc/ti-ads131e08.c
drivers/iio/chemical/ens160_core.c
drivers/iio/gyro/adxrs290.c
drivers/iio/health/afe4403.c
drivers/iio/health/afe4404.c
drivers/iio/magnetometer/bmc150_magn.c
drivers/iio/pressure/dlhl60d.c
drivers/iio/temperature/tmp006.c