We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08b7cf1 commit e74200eCopy full SHA for e74200e
drivers/pinctrl/stm32/pinctrl-stm32.c
@@ -311,6 +311,10 @@ static void stm32_gpio_irq_trigger(struct irq_data *d)
311
struct stm32_gpio_bank *bank = d->domain->host_data;
312
int level;
313
314
+ /* Do not access the GPIO if this is not LEVEL triggered IRQ. */
315
+ if (!(bank->irq_type[d->hwirq] & IRQ_TYPE_LEVEL_MASK))
316
+ return;
317
+
318
/* If level interrupt type then retrig */
319
level = stm32_gpio_get(&bank->gpio_chip, d->hwirq);
320
if ((level == 0 && bank->irq_type[d->hwirq] == IRQ_TYPE_LEVEL_LOW) ||
0 commit comments