public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] genirq: Fix bad IRQ_ONSHOT in forced IRQ setting
@ 2015-09-17  7:13 Kohji Okuno
  2015-09-17  7:59 ` Thomas Gleixner
  0 siblings, 1 reply; 14+ messages in thread
From: Kohji Okuno @ 2015-09-17  7:13 UTC (permalink / raw)
  To: tglx; +Cc: linux-kernel, Kohji Okuno

If handler and thread_fn have valid function pointers for each
in request_thread_irq(), IRQF_ONESHOT is set unnecessarily in
irq_setup_forces_threading() in case of threadirqs.
As this result, the IRQ handler will not be called.

Signed-off-by: Kohji Okuno <okuno.kohji@jp.panasonic.com>
---
 kernel/irq/manage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index f9a59f6..759ce0f 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -991,12 +991,12 @@ static void irq_setup_forced_threading(struct irqaction *new)
 	if (new->flags & (IRQF_NO_THREAD | IRQF_PERCPU | IRQF_ONESHOT))
 		return;
 
-	new->flags |= IRQF_ONESHOT;
 
 	if (!new->thread_fn) {
 		set_bit(IRQTF_FORCED_THREAD, &new->thread_flags);
 		new->thread_fn = new->handler;
 		new->handler = irq_default_primary_handler;
+		new->flags |= IRQF_ONESHOT;
 	}
 }
 
-- 
1.9.1


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

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

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-17  7:13 [PATCH] genirq: Fix bad IRQ_ONSHOT in forced IRQ setting Kohji Okuno
2015-09-17  7:59 ` Thomas Gleixner
2015-09-17  8:21   ` Kohji Okuno
2015-09-17  9:48     ` Kohji Okuno
2015-09-17 21:10       ` Thomas Gleixner
2015-09-18  0:35         ` Kohji Okuno
2015-09-18  9:04           ` Thomas Gleixner
2015-09-18  9:22             ` Kohji Okuno
2015-09-18 10:03               ` Marc Zyngier
2015-09-18 10:56                 ` Kohji Okuno
2015-09-18 14:46                   ` Thomas Gleixner
2015-09-19 15:33                     ` Kohji Okuno
2015-09-19 20:24                       ` Thomas Gleixner
2015-09-20  0:21                         ` Kohji Okuno

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