From: Fengguang Wu <fengguang.wu@intel.com>
To: Samuel Ortiz <sameo@linux.intel.com>
Cc: Haojian Zhuang <haojian.zhuang@marvell.com>,
LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH] mfd: use IRQF_ONESHOT for max8925
Date: Wed, 19 Sep 2012 09:41:13 +0800 [thread overview]
Message-ID: <20120919014113.GA15981@localhost> (raw)
In-Reply-To: <20120919013051.GA14171@localhost>
Generated by: scripts/coccinelle/misc/irqf_oneshot.cocci
Make sure threaded IRQs without a primary handler are always request
with IRQF_ONESHOT.
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
Please take the patch only if it's a positive warning. Thanks!
drivers/mfd/max8925-core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- linux.orig/drivers/mfd/max8925-core.c 2012-09-18 08:22:36.381180459 +0800
+++ linux/drivers/mfd/max8925-core.c 2012-09-19 09:37:52.471984440 +0800
@@ -547,7 +547,7 @@ static int max8925_irq_init(struct max89
goto tsc_irq;
}
- ret = request_threaded_irq(irq, NULL, max8925_irq, flags,
+ ret = request_threaded_irq(irq, NULL, max8925_irq, flags | IRQF_ONESHOT,
"max8925", chip);
if (ret) {
dev_err(chip->dev, "Failed to request core IRQ: %d\n", ret);
@@ -565,7 +565,7 @@ tsc_irq:
chip->tsc_irq = pdata->tsc_irq;
ret = request_threaded_irq(chip->tsc_irq, NULL, max8925_tsc_irq,
- flags, "max8925-tsc", chip);
+ flags | IRQF_ONESHOT, "max8925-tsc", chip);
if (ret) {
dev_err(chip->dev, "Failed to request TSC IRQ: %d\n", ret);
chip->tsc_irq = 0;
next prev parent reply other threads:[~2012-09-19 1:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-19 1:30 [PATCH] mfd: use IRQF_ONESHOT for 88pm860x Fengguang Wu
2012-09-19 1:32 ` [PATCH] mfd: use IRQF_ONESHOT for twl6040 Fengguang Wu
2012-09-19 6:19 ` Peter Ujfalusi
2012-09-19 1:41 ` Fengguang Wu [this message]
2012-09-19 11:26 ` [PATCH] mfd: use IRQF_ONESHOT for 88pm860x Samuel Ortiz
2012-09-19 23:24 ` [PATCH] mfd: arizona: use IRQF_ONESHOT Fengguang Wu
2012-09-20 0:41 ` Mark Brown
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=20120919014113.GA15981@localhost \
--to=fengguang.wu@intel.com \
--cc=haojian.zhuang@marvell.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sameo@linux.intel.com \
/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