From: Roman Zippel <zippel@linux-m68k.org>
To: Linus Torvalds <torvalds@osdl.org>
Cc: viro@parcelfarce.linux.theplanet.co.uk,
<linux-kernel@vger.kernel.org>,
Marcelo Tosatti <marcelo.tosatti@cyclades.com>,
Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
Subject: Re: [RFC] disable_irq()/enable_irq() semantics and ide-probe.c
Date: Thu, 9 Oct 2003 14:55:36 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.44.0310091408460.8124-100000@serv> (raw)
In-Reply-To: <Pine.LNX.4.44.0310081904330.2721-100000@home.osdl.org>
Hi,
On Wed, 8 Oct 2003, Linus Torvalds wrote:
> And while I agree that the depth clearing is bogus, but I'd be worried
> about removing it in case some driver actually depends on it (ie
> historically it has actually been ok to do:
>
> disable_irq(irq);
> .. set up device ..
> request_irq(irq, ..); // This will also enable the irq
>
> even though it's ugly, and I hope nobody does it).
If there are such cases left, I'd really prefer we fix them, as currently
nothing protects this against another driver requesting the same irq. To
make this even more fun the behaviour is also different if the irq is
shared, as the irq is not enabled in this case.
In the ide driver I'd really like to see that at the time the probe
function reenables the interrupt there is either an irq handler installed
or it failed. On the Amiga we also have always problems with this, as the
interrupt must be acknowledged by the driver, so we have to be careful not
to leave anything pending. The irq handler would automatically take care
of this and would make this simpler.
bye, Roman
next prev parent reply other threads:[~2003-10-09 12:55 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-09 2:00 viro
2003-10-09 2:29 ` Linus Torvalds
2003-10-09 2:43 ` viro
2003-10-09 2:53 ` Linus Torvalds
2003-10-09 8:03 ` Russell King
2003-10-09 22:46 ` Zwane Mwaikambo
2003-10-09 8:07 ` Benjamin Herrenschmidt
2003-10-09 15:46 ` viro
2003-10-09 16:01 ` Linus Torvalds
2003-10-09 17:46 ` viro
2003-10-09 18:03 ` Linus Torvalds
2003-10-09 18:27 ` viro
2003-10-09 19:05 ` Linus Torvalds
2003-10-15 17:14 ` Anton Blanchard
2003-10-17 9:19 ` Russell King
2003-10-17 10:32 ` Benjamin Herrenschmidt
2003-10-09 12:55 ` Roman Zippel [this message]
2003-10-09 16:10 Manfred Spraul
2003-10-09 16:38 ` Jeff Garzik
2003-10-09 16:57 ` Benjamin Herrenschmidt
2003-10-09 17:03 ` Jeff Garzik
2003-10-09 17:07 ` Benjamin Herrenschmidt
2003-10-09 17:16 ` Jeff Garzik
2003-10-09 17:29 ` Linus Torvalds
2003-10-09 17:52 ` Jeff Garzik
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=Pine.LNX.4.44.0310091408460.8124-100000@serv \
--to=zippel@linux-m68k.org \
--cc=B.Zolnierkiewicz@elka.pw.edu.pl \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.tosatti@cyclades.com \
--cc=torvalds@osdl.org \
--cc=viro@parcelfarce.linux.theplanet.co.uk \
/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®