public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Russell King <rmk+lkml@arm.linux.org.uk>
To: Ingo Molnar <mingo@elte.hu>, David Brownell <david-b@pacbell.net>,
	Linux Kernel list <linux-kernel@vger.kernel.org>,
	tglx@linutronix.de, mingo@redhat.com,
	Andrew Victor <andrew@sanpeople.com>,
	Alessandro Zummo <alessandro.zummo@towertech.it>
Subject: Re: [patch 2.6.18-rc1] genirq: {en,dis}able_irq_wake() need refcounting too
Date: Mon, 10 Jul 2006 10:19:20 +0100	[thread overview]
Message-ID: <20060710091920.GB4400@flint.arm.linux.org.uk> (raw)
In-Reply-To: <20060710091340.GA4400@flint.arm.linux.org.uk>

On Mon, Jul 10, 2006 at 10:13:40AM +0100, Russell King wrote:
> On Mon, Jul 10, 2006 at 10:58:49AM +0200, Ingo Molnar wrote:
> > 
> > * David Brownell <david-b@pacbell.net> wrote:
> > 
> > > It's not just "normal" mode operation that needs refcounting for the 
> > > {en,dis}able_irq() calls ... "wakeup" mode calls need it too, for the 
> > > very same reasons.
> > > 
> > > This patch adds that refcounting.  I expect that some ARM drivers will 
> > > be triggering the new warning, but this call isn't yet widely used. 
> > > (Which is probably why the bug has lingered this long...)
> > 
> > Acked-by: Ingo Molnar <mingo@elte.hu>
> > 
> > we should also add disable_irq_wake() / enable_irq_wake() APIs and start 
> > migrating most ARM users over to the new APIs, agreed? That makes the 
> > APIs more symmetric and the code more readable too.
> 
> That _is_ the API anyway.  set_irq_wake() was never intended to be called
> directly from drivers.

Also note that genirq has a bigger problem to fry at the moment - it's
currently broken for ARM SMP + hotplug CPU due to missing functionality
(as in, the kernel doesn't even link.)  Thomas has a patch which is
going through the test mills at the moment.

Let's first get genirq to a point where it's a direct replacement for
my IRQ subsystem before thinking about changing existing APIs (and
thereby possibly introducing other breakage.)

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 Serial core

  parent reply	other threads:[~2006-07-10  9:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-09 21:58 [patch 2.6.18-rc1] genirq: {en,dis}able_irq_wake() need refcounting too David Brownell
2006-07-10  8:58 ` Ingo Molnar
2006-07-10  9:13   ` Russell King
2006-07-10  9:12     ` Ingo Molnar
2006-07-10  9:19     ` Russell King [this message]
2006-07-10  9:16       ` Ingo Molnar
2006-07-10  9:32   ` Thomas Gleixner
2006-07-15  1:31   ` David Brownell

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=20060710091920.GB4400@flint.arm.linux.org.uk \
    --to=rmk+lkml@arm.linux.org.uk \
    --cc=alessandro.zummo@towertech.it \
    --cc=andrew@sanpeople.com \
    --cc=david-b@pacbell.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    /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