Skip to content

Commit d829b8f

Browse files
JeffyCNKAGA-KOKO
authored andcommitted
genirq: Set irq masked state when initializing irq_desc
The irq default state is set to disabled when allocating irq desc, but the masked state flag is not set. This is inconsistent vs. the state tracking logic which is used to prevent unnecessary calls to hardware level irq chip functions. Set the masked state flag as well. Signed-off-by: Jeffy Chen <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected]
1 parent e1c9214 commit d829b8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/irq/irqdesc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ static void desc_set_defaults(unsigned int irq, struct irq_desc *desc, int node,
116116
desc->irq_data.chip_data = NULL;
117117
irq_settings_clr_and_set(desc, ~0, _IRQ_DEFAULT_INIT_FLAGS);
118118
irqd_set(&desc->irq_data, IRQD_IRQ_DISABLED);
119+
irqd_set(&desc->irq_data, IRQD_IRQ_MASKED);
119120
desc->handle_irq = handle_bad_irq;
120121
desc->depth = 1;
121122
desc->irq_count = 0;

0 commit comments

Comments
 (0)