From: Laxman Dewangan <ldewangan@nvidia.com>
To: <tglx@linutronix.de>
Cc: <linux-kernel@vger.kernel.org>,
sreenivasulu velpula <svelpula@nvidia.com>,
Laxman Dewangan <ldewangan@nvidia.com>
Subject: [PATCH] kernel: irq: Call irq_chip->irq_mask in irq_disable
Date: Tue, 9 Jul 2013 19:56:47 +0530 [thread overview]
Message-ID: <1373380007-6019-1-git-send-email-ldewangan@nvidia.com> (raw)
From: sreenivasulu velpula <svelpula@nvidia.com>
If interrupt driver has implemented the irq_mask/irq_unmask
callbacks for disable/enable interrupt then call these APIs
from irq_disable/irq_enable.
Currently, on irq_disable(), it just look for the callback
irq_disable() implemented by chip interrupt driver not the
irq_mask().
Add check for the valid callback of irq_mask() and if it is
there then call it from irq_disable.
This is based on change done by:
sreenivasulu velpula <svelpula@nvidia.com>
Signed-off-by: sreenivasulu velpula <svelpula@nvidia.com>
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
---
kernel/irq/chip.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c
index a3bb14f..b6efb92 100644
--- a/kernel/irq/chip.c
+++ b/kernel/irq/chip.c
@@ -232,6 +232,9 @@ void irq_disable(struct irq_desc *desc)
if (desc->irq_data.chip->irq_disable) {
desc->irq_data.chip->irq_disable(&desc->irq_data);
irq_state_set_masked(desc);
+ } else if (desc->irq_data.chip->irq_mask) {
+ desc->irq_data.chip->irq_mask(&desc->irq_data);
+ irq_state_set_masked(desc);
}
}
--
1.7.1.1
next reply other threads:[~2013-07-09 14:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-09 14:26 Laxman Dewangan [this message]
2013-07-19 14:32 ` 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=1373380007-6019-1-git-send-email-ldewangan@nvidia.com \
--to=ldewangan@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=svelpula@nvidia.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
all inboxes | Powered by JetHome®