mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC PATCH v2 1/2] genirq: Set irq masked state by default
@ 2017-06-26 11:33 Jeffy Chen
  2017-06-26 11:33 ` [RFC PATCH v2 2/2] genirq: Avoid unnecessary low level irq function calls Jeffy Chen
  2017-06-26 13:58 ` [tip:irq/core] genirq: Set irq masked state when initializing irq_desc tip-bot for Jeffy Chen
  0 siblings, 2 replies; 4+ messages in thread
From: Jeffy Chen @ 2017-06-26 11:33 UTC (permalink / raw)
  To: linux-kernel, tglx; +Cc: briannorris, dianders, tfiga, Jeffy Chen

We are setting irq default state to disabled when allocating irq desc,
so set it masked there too.

Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
---

Changes in v2: None

 kernel/irq/irqdesc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c
index c5bbaed..f1248ee 100644
--- a/kernel/irq/irqdesc.c
+++ b/kernel/irq/irqdesc.c
@@ -105,6 +105,7 @@ static void desc_set_defaults(unsigned int irq, struct irq_desc *desc, int node,
 	desc->irq_data.chip_data = NULL;
 	irq_settings_clr_and_set(desc, ~0, _IRQ_DEFAULT_INIT_FLAGS);
 	irqd_set(&desc->irq_data, IRQD_IRQ_DISABLED);
+	irqd_set(&desc->irq_data, IRQD_IRQ_MASKED);
 	desc->handle_irq = handle_bad_irq;
 	desc->depth = 1;
 	desc->irq_count = 0;
-- 
2.1.4

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

end of thread, other threads:[~2017-06-26 14:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-26 11:33 [RFC PATCH v2 1/2] genirq: Set irq masked state by default Jeffy Chen
2017-06-26 11:33 ` [RFC PATCH v2 2/2] genirq: Avoid unnecessary low level irq function calls Jeffy Chen
2017-06-26 13:58   ` [tip:irq/core] " tip-bot for Jeffy Chen
2017-06-26 13:58 ` [tip:irq/core] genirq: Set irq masked state when initializing irq_desc tip-bot for Jeffy Chen

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®