From: Jonathan Cameron <jic23@kernel.org>
To: Junxiao Chang <junxiao.chang@intel.com>
Cc: dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org,
gye976@gmail.com, linux-iio@vger.kernel.org,
linux-kernel@vger.kernel.org, lars@metafoo.de
Subject: Re: [PATCH] iio: buffer: fix warning in requesting threaded irq
Date: Tue, 21 Apr 2026 10:38:07 +0100 [thread overview]
Message-ID: <20260421103807.7ca935e9@jic23-huawei> (raw)
In-Reply-To: <20260422005038.1600632-1-junxiao.chang@intel.com>
On Wed, 22 Apr 2026 08:50:38 +0800
Junxiao Chang <junxiao.chang@intel.com> wrote:
> IRQF_ONESHOT is for threaded IRQ. If there is no threaded IRQ
> handler, this flag should not be set.
>
See the guidance in
https://www.kernel.org/doc/Documentation/process/submitting-patches.rst
on how to mark new versions and do change logs etc as this isn't even
close which makes it very hard to track. As such I'll not merge
this version. Please send a v4 (?) Maybe it's gone past that already
with all the rules about change logs and patch titles followed.
> This change fixes a warning during booting with kernel v7.0-rc3.
> Hardware: ARLs(Ultra 9 285) desktop
> Software: Ubuntu 24.04 + v7.0-rc3 kernel.
>
> WARNING: kernel/irq/manage.c:1502 at __setup_irq+0x1639/0x2510, CPU#3: iio-sensor-prox/974
> Call Trace:
> request_threaded_irq+0x2c7/0x490
> iio_trigger_attach_poll_func+0x353/0x6b0
> __iio_update_buffers+0x2420/0x2c70
> enable_store+0x183/0x270
> dev_attr_store+0x5e/0x90
>
> There is no threaded handler in thiggered buffer setup, e.g. vf610_adc
> and hid-sensor. They might introduce this warning.
>
> Fixes: 23f2d735a932 ("iio: Add helper function for initializing triggered buffers")
This is a complex fix to tag as until recently it was harmless.
All we actually have is a warning that says the combination in non sensical
that was added recently.
Jonathan
> Signed-off-by: Junxiao Chang <junxiao.chang@intel.com>
> ---
> drivers/iio/buffer/industrialio-triggered-buffer.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iio/buffer/industrialio-triggered-buffer.c b/drivers/iio/buffer/industrialio-triggered-buffer.c
> index 9bf75dee7ff86..40eea3a447246 100644
> --- a/drivers/iio/buffer/industrialio-triggered-buffer.c
> +++ b/drivers/iio/buffer/industrialio-triggered-buffer.c
> @@ -64,7 +64,7 @@ int iio_triggered_buffer_setup_ext(struct iio_dev *indio_dev,
>
> indio_dev->pollfunc = iio_alloc_pollfunc(h,
> thread,
> - IRQF_ONESHOT,
> + thread ? IRQF_ONESHOT : 0,
> indio_dev,
> "%s_consumer%d",
> indio_dev->name,
next prev parent reply other threads:[~2026-04-21 9:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-22 0:50 [PATCH] iio: buffer: fix warning in requesting threaded irq Junxiao Chang
2026-04-21 9:38 ` Jonathan Cameron [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-04-21 1:52 Junxiao Chang
2026-04-20 9:21 ` Andy Shevchenko
2026-04-18 0:23 Junxiao Chang
2026-04-17 7:25 ` Andy Shevchenko
2026-04-17 7:35 ` Andy Shevchenko
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=20260421103807.7ca935e9@jic23-huawei \
--to=jic23@kernel.org \
--cc=andy@kernel.org \
--cc=dlechner@baylibre.com \
--cc=gye976@gmail.com \
--cc=junxiao.chang@intel.com \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.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