Skip to content

Commit d001e41

Browse files
chenbaozi-ftMarc Zyngier
authored andcommitted
irqchip/exiu: Fix the index of fwspec for IRQ type
Since fwspec->param_count of ACPI node is two, the index of IRQ type in fwspec->param[] should be 1 rather than 2. Fixes: 3d090a3 ("irqchip/exiu: Implement ACPI support") Signed-off-by: Chen Baozi <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Acked-by: Ard Biesheuvel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: [email protected]
1 parent d95bdca commit d001e41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/irqchip/irq-sni-exiu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ static int exiu_domain_translate(struct irq_domain *domain,
136136
if (fwspec->param_count != 2)
137137
return -EINVAL;
138138
*hwirq = fwspec->param[0];
139-
*type = fwspec->param[2] & IRQ_TYPE_SENSE_MASK;
139+
*type = fwspec->param[1] & IRQ_TYPE_SENSE_MASK;
140140
}
141141
return 0;
142142
}

0 commit comments

Comments
 (0)