mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: Mark Brown <broonie@kernel.org>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
	Richard Fitzgerald <rf@opensource.cirrus.com>,
	patches@opensource.cirrus.com, linux-kernel@vger.kernel.org,
	Lee Jones <lee@kernel.org>
Subject: Re: request_irq() usage in wm8350_register_irq().
Date: Wed, 21 Jan 2026 14:45:08 +0100	[thread overview]
Message-ID: <20260121134508.aS-h9DpX@linutronix.de> (raw)
In-Reply-To: <2fcb799a-de89-47e0-a38a-a3a828d0b834@sirena.org.uk>

On 2026-01-21 13:37:09 [+0000], Mark Brown wrote:
> On Wed, Jan 21, 2026 at 02:18:11PM +0100, Sebastian Andrzej Siewior wrote:
> 
> > I've been staring wm8350_register_irq(). It does
> 
> > | request_threaded_irq(irq + wm8350->irq_base, NULL,
> > | 		handler, flags, name, data);
> 
> > and every single user passes 0 as flags. This means it asks for a
> > threaded IRQ and does not pass IRQF_ONESHOT.
> 
> > So either this is not working because it triggers the warnings
> > 	Threaded irq requested with handler=NULL and !ONESHOT
> 
> > followed by -EINVAL _or_ every single user of this driver sits in
> > system where the irqchip is IRQCHIP_ONESHOT_SAFE marked.
> > Which is it?
> 
> The chip is only accessable via I2C or SPI so the primary interrupt
> handler is itself always running and reporting child interrupts in
> threaded context.  They can't really deliver a hardirq context
> interrupt.

In that case it lacks the needed IRQF_ONEHOST flag and nobody noticed
that request_irq() fails for a few years now. I add a patch to my
stack…

Thanks Mark.

Sebastian

  reply	other threads:[~2026-01-21 13:45 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-21 11:16 Sebastian Andrzej Siewior
2026-01-21 11:22 ` Richard Fitzgerald
2026-01-21 11:36   ` Sebastian Andrzej Siewior
2026-01-21 11:53     ` Richard Fitzgerald
2026-01-21 11:57       ` Sebastian Andrzej Siewior
2026-01-21 12:43         ` Andy Shevchenko
2026-01-21 13:12           ` Mark Brown
2026-01-21 13:18             ` Sebastian Andrzej Siewior
2026-01-21 13:37               ` Mark Brown
2026-01-21 13:45                 ` Sebastian Andrzej Siewior [this message]
2026-01-21 15:03                   ` Mark Brown
2026-01-21 13:20             ` Andy Shevchenko
2026-01-21 12:49         ` Richard Fitzgerald
2026-01-21 13:28           ` Charles Keepax

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=20260121134508.aS-h9DpX@linutronix.de \
    --to=bigeasy@linutronix.de \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=broonie@kernel.org \
    --cc=lee@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=patches@opensource.cirrus.com \
    --cc=rf@opensource.cirrus.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

Powered by JetHome