diff options
author | Chen Baozi <[email protected]> | 2020-11-17 11:20:15 +0800 |
---|---|---|
committer | Marc Zyngier <[email protected]> | 2020-11-22 10:27:23 +0000 |
commit | d001e41e1b15716e9b759df5ef00510699f85282 (patch) | |
tree | 1d3d0c3fe217b593bc6dc276c1bf9260e4225957 | |
parent | d95bdca75b3fb41bf185efe164e05aed820081a5 (diff) |
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: 3d090a36c8c8 ("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]
-rw-r--r-- | drivers/irqchip/irq-sni-exiu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-sni-exiu.c b/drivers/irqchip/irq-sni-exiu.c index 1d027623c776..abd011fcecf4 100644 --- a/drivers/irqchip/irq-sni-exiu.c +++ b/drivers/irqchip/irq-sni-exiu.c @@ -136,7 +136,7 @@ static int exiu_domain_translate(struct irq_domain *domain, if (fwspec->param_count != 2) return -EINVAL; *hwirq = fwspec->param[0]; - *type = fwspec->param[2] & IRQ_TYPE_SENSE_MASK; + *type = fwspec->param[1] & IRQ_TYPE_SENSE_MASK; } return 0; } |