mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Richard Fitzgerald <rf@opensource.cirrus.com>
To: Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
	patches@opensource.cirrus.com, linux-kernel@vger.kernel.org
Cc: Lee Jones <lee@kernel.org>,
	Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Subject: Re: request_irq() usage in wm8350_register_irq().
Date: Wed, 21 Jan 2026 11:22:32 +0000	[thread overview]
Message-ID: <fbd0ffc0-d308-4064-893b-3c1b51a13a35@opensource.cirrus.com> (raw)
In-Reply-To: <20260121111617.quQxFcZK@linutronix.de>

On 21/01/2026 11:16 am, Sebastian Andrzej Siewior wrote:
> Hi,
> 
> 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?
> 
> Sebastian

Or because request_threaded_irq() supplies a default handler, so
handler!=NULL when it calls __setup_irq().


int request_threaded_irq(unsigned int irq, irq_handler_t handler,
			 irq_handler_t thread_fn, unsigned long irqflags,
			 const char *devname, void *dev_id)
{

...

	if (!handler) {
		if (!thread_fn)
			return -EINVAL;
		handler = irq_default_primary_handler;
	}

...


	retval = __setup_irq(irq, desc, action);

...
}

  reply	other threads:[~2026-01-21 11:23 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 [this message]
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
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=fbd0ffc0-d308-4064-893b-3c1b51a13a35@opensource.cirrus.com \
    --to=rf@opensource.cirrus.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=bigeasy@linutronix.de \
    --cc=lee@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=patches@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

all inboxes | Powered by JetHome®