* [PATCH] iio: adc: ti-ads1119: Replace IRQF_ONESHOT with IRQF_NO_THREAD
@ 2026-03-02 16:00 Felix Gu
2026-03-02 16:15 ` David Lechner
2026-03-02 16:42 ` Andy Shevchenko
0 siblings, 2 replies; 6+ messages in thread
From: Felix Gu @ 2026-03-02 16:00 UTC (permalink / raw)
To: Francesco Dolcini, João Paulo Gonçalves,
Jonathan Cameron, David Lechner, Nuno Sá,
Andy Shevchenko
Cc: João Paulo Gonçalves, Francesco Dolcini,
Jonathan Cameron, linux-iio, linux-kernel, Felix Gu
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.
Fixes: a9306887eba4 ("iio: adc: ti-ads1119: Add driver")
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
---
drivers/iio/adc/ti-ads1119.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/iio/adc/ti-ads1119.c b/drivers/iio/adc/ti-ads1119.c
index c9cedc59cdcd..d92a20945b80 100644
--- a/drivers/iio/adc/ti-ads1119.c
+++ b/drivers/iio/adc/ti-ads1119.c
@@ -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,
--
Felix Gu <ustc.gu@gmail.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] iio: adc: ti-ads1119: Replace IRQF_ONESHOT with IRQF_NO_THREAD
2026-03-02 16:00 [PATCH] iio: adc: ti-ads1119: Replace IRQF_ONESHOT with IRQF_NO_THREAD Felix Gu
@ 2026-03-02 16:15 ` David Lechner
2026-03-02 20:00 ` Jonathan Cameron
2026-03-02 16:42 ` Andy Shevchenko
1 sibling, 1 reply; 6+ messages in thread
From: David Lechner @ 2026-03-02 16:15 UTC (permalink / raw)
To: Felix Gu, Francesco Dolcini, João Paulo Gonçalves,
Jonathan Cameron, Nuno Sá,
Andy Shevchenko
Cc: João Paulo Gonçalves, Francesco Dolcini,
Jonathan Cameron, linux-iio, linux-kernel
On 3/2/26 10:00 AM, Felix Gu wrote:
> 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.
>
> Fixes: a9306887eba4 ("iio: adc: ti-ads1119: Add driver")
> Signed-off-by: Felix Gu <ustc.gu@gmail.com>
> ---
Reviewed-by: David Lechner <dlechner@baylibre.com>
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] iio: adc: ti-ads1119: Replace IRQF_ONESHOT with IRQF_NO_THREAD
2026-03-02 16:00 [PATCH] iio: adc: ti-ads1119: Replace IRQF_ONESHOT with IRQF_NO_THREAD Felix Gu
2026-03-02 16:15 ` David Lechner
@ 2026-03-02 16:42 ` Andy Shevchenko
2026-03-02 16:42 ` Andy Shevchenko
1 sibling, 1 reply; 6+ messages in thread
From: Andy Shevchenko @ 2026-03-02 16:42 UTC (permalink / raw)
To: Felix Gu
Cc: Francesco Dolcini, João Paulo Gonçalves,
Jonathan Cameron, David Lechner, Nuno Sá,
Andy Shevchenko, João Paulo Gonçalves,
Francesco Dolcini, Jonathan Cameron, linux-iio, linux-kernel
On Tue, Mar 03, 2026 at 12:00:04AM +0800, Felix Gu wrote:
> 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.
...
> if (ret)
> return dev_err_probe(dev, ret,
> "Failed to allocate irq\n");
Also consider dropping this duplicate message as the callee does it already.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] iio: adc: ti-ads1119: Replace IRQF_ONESHOT with IRQF_NO_THREAD
2026-03-02 16:42 ` Andy Shevchenko
@ 2026-03-02 16:42 ` Andy Shevchenko
2026-03-02 16:52 ` Felix Gu
0 siblings, 1 reply; 6+ messages in thread
From: Andy Shevchenko @ 2026-03-02 16:42 UTC (permalink / raw)
To: Felix Gu
Cc: Francesco Dolcini, João Paulo Gonçalves,
Jonathan Cameron, David Lechner, Nuno Sá,
Andy Shevchenko, João Paulo Gonçalves,
Francesco Dolcini, Jonathan Cameron, linux-iio, linux-kernel
On Mon, Mar 02, 2026 at 06:42:11PM +0200, Andy Shevchenko wrote:
> On Tue, Mar 03, 2026 at 12:00:04AM +0800, Felix Gu wrote:
...
> > if (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.)
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] iio: adc: ti-ads1119: Replace IRQF_ONESHOT with IRQF_NO_THREAD
2026-03-02 16:42 ` Andy Shevchenko
@ 2026-03-02 16:52 ` Felix Gu
0 siblings, 0 replies; 6+ messages in thread
From: Felix Gu @ 2026-03-02 16:52 UTC (permalink / raw)
To: Andy Shevchenko
Cc: Francesco Dolcini, João Paulo Gonçalves,
Jonathan Cameron, David Lechner, Nuno Sá,
Andy Shevchenko, João Paulo Gonçalves,
Francesco Dolcini, Jonathan Cameron, linux-iio, linux-kernel
On Tue, Mar 3, 2026 at 12:43 AM Andy Shevchenko
<andriy.shevchenko@intel.com> wrote:
>
> On Mon, Mar 02, 2026 at 06:42:11PM +0200, Andy Shevchenko wrote:
> > On Tue, Mar 03, 2026 at 12:00:04AM +0800, Felix Gu wrote:
>
> ...
>
> > > if (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.)
>
> --
> With Best Regards,
> Andy Shevchenko
>
>
Hi Andy,
I will draft a patch for it.
Best regards,
Felix
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] iio: adc: ti-ads1119: Replace IRQF_ONESHOT with IRQF_NO_THREAD
2026-03-02 16:15 ` David Lechner
@ 2026-03-02 20:00 ` Jonathan Cameron
0 siblings, 0 replies; 6+ messages in thread
From: Jonathan Cameron @ 2026-03-02 20:00 UTC (permalink / raw)
To: David Lechner
Cc: Felix Gu, Francesco Dolcini, João Paulo Gonçalves,
Nuno Sá,
Andy Shevchenko, João Paulo Gonçalves,
Francesco Dolcini, Jonathan Cameron, linux-iio, linux-kernel
On Mon, 2 Mar 2026 10:15:04 -0600
David Lechner <dlechner@baylibre.com> wrote:
> On 3/2/26 10:00 AM, Felix Gu wrote:
> > 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.
> >
> > Fixes: a9306887eba4 ("iio: adc: ti-ads1119: Add driver")
> > Signed-off-by: Felix Gu <ustc.gu@gmail.com>
> > ---
> Reviewed-by: David Lechner <dlechner@baylibre.com>
>
> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-03-02 20:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-02 16:00 [PATCH] iio: adc: ti-ads1119: Replace IRQF_ONESHOT with IRQF_NO_THREAD Felix Gu
2026-03-02 16:15 ` David Lechner
2026-03-02 20:00 ` Jonathan Cameron
2026-03-02 16:42 ` Andy Shevchenko
2026-03-02 16:42 ` Andy Shevchenko
2026-03-02 16:52 ` Felix Gu
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®