From: Thomas Gleixner <tglx@linutronix.de>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>,
Ingo Molnar <mingo@kernel.org>,
linux-kernel@vger.kernel.org,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [GIT PULL] irq/core changes for v3.5
Date: Wed, 13 Jun 2012 12:23:09 +0200 (CEST) [thread overview]
Message-ID: <alpine.LFD.2.02.1206131127050.3086@ionos> (raw)
In-Reply-To: <CA+55aFxC0436vCDwX8nUnKNa3ZZi=ZhL0w6eMk0hM3oKTz4LJw@mail.gmail.com>
On Wed, 13 Jun 2012, Linus Torvalds wrote:
> I relaize that the current drivers that rely on our old fast-and-loose
> behavior actually *work*, and I realize that apparently there aren't
> any shared irq issues in existence today, but I'd like our generic irq
> code to do the RightThing(tm), and I think that implies that it is the
> drivers that should be fixed, not the core irq layer that should work
> around the problem.
I don't see much of a difference between
request_threaded_irq(irq, NULL, thread_handler, 0,...)
and
request_threaded_irq(irq, NULL, thread_handler, IRQF_ONESHOT,...)
The NULL primary handler is a clear indicator for the intention. So
the innocent author of that *correct* driver will see in both cases
what's going on.
But that's a distinction without a difference which we can discuss
forever :)
> Driver authors that see the error should be able to easily fix their
> drivers, no?
No argument about that, though I prefer not to break working stuff
just to add another indicator for something which is obvious already
and requires to have such a weird device on a machine with shared
interrupts.
A 5th option would be to emit a warning in case the flag is not set,
fix it up for now and schedule it for removal in 3.6. Anything what's
not fixed by then is broken for good.
Your choice, really.
Thanks,
tglx
next prev parent reply other threads:[~2012-06-13 10:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-22 3:25 [GIT PULL] irq/core changes for v3.5 Ingo Molnar
2012-06-12 10:24 ` Guennadi Liakhovetski
2012-06-12 14:56 ` Thomas Gleixner
2012-06-12 15:26 ` Linus Torvalds
2012-06-12 16:47 ` Thomas Gleixner
2012-06-13 5:30 ` Linus Torvalds
2012-06-13 7:03 ` Guennadi Liakhovetski
2012-06-15 11:47 ` Mark Brown
2012-06-13 10:23 ` Thomas Gleixner [this message]
2012-06-13 13:38 ` Ingo Molnar
2012-06-13 14:13 ` Thomas Gleixner
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=alpine.LFD.2.02.1206131127050.3086@ionos \
--to=tglx@linutronix.de \
--cc=a.p.zijlstra@chello.nl \
--cc=akpm@linux-foundation.org \
--cc=g.liakhovetski@gmx.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=torvalds@linux-foundation.org \
/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