iio: adc: ti-ads1119: Replace IRQF_ONESHOT with IRQF_NO_THREAD
Subsystems (2)
PATCH 1/1 iio: adc: ti-ads1119: Replace IRQF_ONESHOT with IRQF_NO_THREAD
Since commit aef30c8d569c ("genirq: Warn about using IRQF_ONESHOT without a threaded handler"), the IRQ core checks IRQF_ONESHOT flag in IRQ request and gives a warning if there is no threaded handler.
Since there is no threaded handler, replace devm_request_threaded_irq with devm_request_irq, and replace IRQF_ONESHOT with IRQF_NO_THREAD.
--- drivers/iio/adc/ti-ads1119.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/iio/adc/ti-ads1119.c +2 -4
@@ -735,10 +735,8 @@ static int ads1119_probe(struct i2c_client *client)return dev_err_probe (dev, ret,"Failed to setup IIO buffer\n" );if (client->irq >0 ) { - ret =devm_request_threaded_irq (dev, client->irq, - ads1119_irq_handler, -NULL ,IRQF_ONESHOT , -"ads1119" , indio_dev); + ret =devm_request_irq (dev, client->irq, ads1119_irq_handler, +IRQF_NO_THREAD ,"ads1119" , indio_dev);if (ret)return dev_err_probe (dev, ret,"Failed to allocate irq\n" );
---
base-commit: 3fa5e5702a82d259897bd7e209469bc06368bf31
change-id: 20260302-ti-ads1119-93c524003d3f
Best regards,
Signature · 1 line
Felix Gu <[email protected]>
Quoted 10 lines · Felix Gu
Since commit
aef30c8d569c("genirq: Warn about usingIRQF_ONESHOTwithout a threaded handler"), the IRQ core checksIRQF_ONESHOTflag in IRQ request and gives a warning if there is no threaded handler.Since there is no threaded handler, replace
devm_request_threaded_irqwithdevm_request_irq, and replaceIRQF_ONESHOTwithIRQF_NO_THREAD.Fixes a9306887eba4 ("iio: adc: ti-ads1119: Add driver")Signed-off-by Felix Gu <[email protected]>---
Although I would swap the order of paragraphs in the commit message. The second one is the real problem (so should go first) and the first one is just how the problem was found.
Quoted 8 lines · On Mon, 2 Mar 2026 10:15:04 -0600 David Lechner <[email protected]> wrote:
Quoted 7 lines · Felix Gu
Since commit
aef30c8d569c("genirq: Warn about usingIRQF_ONESHOTwithout a threaded handler"), the IRQ core checksIRQF_ONESHOTflag in IRQ request and gives a warning if there is no threaded handler.Since there is no threaded handler, replace
devm_request_threaded_irqwithdevm_request_irq, and replaceIRQF_ONESHOTwithIRQF_NO_THREAD.
Quoted 8 lines
Quoted 3 lines
Fixes a9306887eba4 ("iio: adc: ti-ads1119: Add driver")Signed-off-by Felix Gu <[email protected]>---
Reviewed-by David Lechner <[email protected]>Although I would swap the order of paragraphs in the commit message. The second one is the real problem (so should go first) and the first one is just how the problem was found.
I rewrote the commit message along those lines and called out why it needs IRQF_NO_THREAD.
Applied to the fixes-togreg branch of iio.git and marked for stable.
Given proximity to the patch removing the message, it may be this will cause some slight mess in linux-next.
Thanks,
Jonathan
Quoted 6 lines · Felix Gu
Since commit
aef30c8d569c("genirq: Warn about usingIRQF_ONESHOTwithout a threaded handler"), the IRQ core checksIRQF_ONESHOTflag in IRQ request and gives a warning if there is no threaded handler.Since there is no threaded handler, replace
devm_request_threaded_irqwithdevm_request_irq, and replaceIRQF_ONESHOTwithIRQF_NO_THREAD.
...
drivers/iio/adc/ti-ads1119.c static int ads1119_probe(struct i2c_client *client) · line 742
Quoted 3 lines
drivers/iio/adc/ti-ads1119.c +0
-0if (ret)return dev_err_probe (dev, ret,"Failed to allocate irq\n" );
Also consider dropping this duplicate message as the callee does it already.
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 1 line · Andy Shevchenko
On Tue, Mar 03, 2026 at 12:00:04AM +0800, Felix Gu wrote:
...
Quoted 5 lines
drivers/iio/adc/ti-ads1119.c static int ads1119_probe(struct i2c_client *client) · line 742
Quoted 3 lines
drivers/iio/adc/ti-ads1119.c +0
-0if (ret)return dev_err_probe (dev, ret,"Failed to allocate irq\n" );Also consider dropping this duplicate message as the callee does it already.
(In a separate patch, obviously.)
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 10 lines · Andy Shevchenko
Quoted 1 line · Andy Shevchenko
On Tue, Mar 03, 2026 at 12:00:04AM +0800, Felix Gu wrote:
...
Quoted 4 lines
Quoted 3 lines
if (ret)
return dev_err_probe(dev, ret,
"Failed to allocate irq\n");
Quoted 9 lines
Quoted 1 line
Also consider dropping this duplicate message as the callee does it already.
(In a separate patch, obviously.)
--
With Best Regards,
Andy Shevchenko
Hi Andy,
I will draft a patch for it.
Best regards,
Felix