From: Pawel MOLL <pawel.moll@st.com>
To: linux-kernel@vger.kernel.org
Cc: Thomas Gleixner <tglx@linutronix.de>
Subject: genirq default_disable()
Date: Tue, 23 Jun 2009 17:23:38 +0100 [thread overview]
Message-ID: <1245774218.14443.120.camel@bri1004.bri.st.com> (raw)
Folks,
A quick question about the interrupt management... (the story takes
place in kernel/irq/chip.c ;-)
Here we have the default_enable():
static void default_enable(unsigned int irq)
{
struct irq_desc *desc = irq_to_desc(irq);
desc->chip->unmask(irq);
desc->status &= ~IRQ_MASKED;
}
It calls chip->unmask(), which absolutely makes sense...
The default_disable(), however, is not symmetric:
static void default_disable(unsigned int irq)
{
}
Is there any reason why it shouldn't call chip->mask()?
I'll be more then happy to prepare a patch doing so, but maybe it's a
feature not a bug and I'm just missing something?
Best regards
Paweł
next reply other threads:[~2009-06-23 16:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-23 16:23 Pawel MOLL [this message]
2009-06-23 16:31 ` 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=1245774218.14443.120.camel@bri1004.bri.st.com \
--to=pawel.moll@st.com \
--cc=linux-kernel@vger.kernel.org \
--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
all inboxes | Powered by JetHome®