Skip to content

Commit f8b3eb4

Browse files
Loic PallardyMarc Zyngier
authored andcommitted
irqchip/stm32-exti: Fix irq_mask/irq_unmask for direct events
The driver has to mask/unmask the corresponding flag in the Interrupt Mask Register (IMR). This is already done for configurable event, while direct events only forward the mask/unmask request to the parent. Use the existing stm32_exti_h_mask()/stm32_exti_h_unmask() for direct events too. Signed-off-by: Loic Pallardy <[email protected]> Signed-off-by: Antonio Borneo <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 3e17683 commit f8b3eb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/irqchip/irq-stm32-exti.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -691,8 +691,8 @@ static struct irq_chip stm32_exti_h_chip_direct = {
691691
.name = "stm32-exti-h-direct",
692692
.irq_eoi = irq_chip_eoi_parent,
693693
.irq_ack = irq_chip_ack_parent,
694-
.irq_mask = irq_chip_mask_parent,
695-
.irq_unmask = irq_chip_unmask_parent,
694+
.irq_mask = stm32_exti_h_mask,
695+
.irq_unmask = stm32_exti_h_unmask,
696696
.irq_retrigger = irq_chip_retrigger_hierarchy,
697697
.irq_set_type = irq_chip_set_type_parent,
698698
.irq_set_wake = stm32_exti_h_set_wake,

0 commit comments

Comments
 (0)