public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] lp8727_charger: use IRQF_ONESHOT
@ 2012-08-23 11:42 Fengguang Wu
  2012-08-23 11:56 ` [PATCH] twl4030_charger: " Fengguang Wu
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Fengguang Wu @ 2012-08-23 11:42 UTC (permalink / raw)
  To: Anton Vorontsov, Kim, Milo; +Cc: Axel Lin, David Woodhouse, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 804 bytes --]

Generated by: scripts/coccinelle/misc/irqf_oneshot.cocci

ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT

Make sure threaded IRQs without a primary handler are always request with IRQF_ONESHOT

Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

Note: I don't really know much about the situation, feel free to
ignore it if it's an false warning.

 cocci-output-25411-2ae2e0-lp8727_charger.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/power/lp8727_charger.c
+++ b/drivers/power/lp8727_charger.c
@@ -255,7 +255,7 @@ static int lp8727_intr_config(struct lp8
 	return request_threaded_irq(pchg->client->irq,
 				NULL,
 				lp8727_isr_func,
-				IRQF_TRIGGER_FALLING,
+				IRQF_TRIGGER_FALLING | IRQF_ONESHOT,
 				"lp8727_irq",
 				pchg);
 }

[-- Attachment #2: irqf_oneshot-lp8727_charger.patch --]
[-- Type: text/x-diff, Size: 819 bytes --]

[PATCH] lp8727_charger: fix coccinelle warnings

/c/kernel-tests/src/linux/drivers/power/lp8727_charger.c:255:8-28: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT

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>
---
 cocci-output-25411-2ae2e0-lp8727_charger.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/power/lp8727_charger.c
+++ b/drivers/power/lp8727_charger.c
@@ -255,7 +255,7 @@ static int lp8727_intr_config(struct lp8
 	return request_threaded_irq(pchg->client->irq,
 				NULL,
 				lp8727_isr_func,
-				IRQF_TRIGGER_FALLING,
+				IRQF_TRIGGER_FALLING | IRQF_ONESHOT,
 				"lp8727_irq",
 				pchg);
 }

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-09-20 22:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-23 11:42 [PATCH] lp8727_charger: use IRQF_ONESHOT Fengguang Wu
2012-08-23 11:56 ` [PATCH] twl4030_charger: " Fengguang Wu
2012-08-23 12:00   ` Felipe Balbi
2012-09-20 22:43     ` Anton Vorontsov
2012-08-29  2:00 ` [PATCH] lp8727_charger: " Kim, Milo
2012-09-20 22:44   ` Anton Vorontsov
2012-08-30 11:41 ` Kim, Milo
2012-08-30 12:06   ` Anton Vorontsov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox