From: "Esben Haabendal" <esbenhaabendal@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: IRQ_NOAUTOEN in __set_irq_handler
Date: Tue, 6 May 2008 14:43:43 +0200 [thread overview]
Message-ID: <d2b9ea600805060543w6e73d9a8p85fac7543c19a05f@mail.gmail.com> (raw)
Would it be possible to have support for IRQ_NOAUTOEN in
__set_irq_handler and thus set_irq_chained_handler?
Something like:
@@ -582,14 +582,19 @@ __set_irq_handler(unsigned int irq,
irq_flow_handler_t handle, int is_chained,
}
desc->handle_irq = handle;
desc->name = name;
if (handle != handle_bad_irq && is_chained) {
- desc->status &= ~IRQ_DISABLED;
desc->status |= IRQ_NOREQUEST | IRQ_NOPROBE;
- desc->depth = 0;
- desc->chip->unmask(irq);
+ if (!(desc->status & IRQ_NOAUTOEN)) {
+ desc->depth = 0;
+ desc->status &= ~IRQ_DISABLED;
+ desc->chip->unmask(irq);
+ } else {
+ /* Undo nested disables: */
+ desc->depth = 1;
+ }
}
spin_unlock_irqrestore(&desc->lock, flags);
}
void
reply other threads:[~2008-05-06 12:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=d2b9ea600805060543w6e73d9a8p85fac7543c19a05f@mail.gmail.com \
--to=esbenhaabendal@gmail.com \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®