Browse Source

drivers: intc: esp32: Disable IRQ before connect

Disable IRQ before connecting new handler when interrupt is not
shared. This aligns intc behavior to version before PR #87369.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
pull/91167/head
Raffael Rostagno 1 month ago committed by Daniel DeGrasse
parent
commit
c3aa6589c3
  1. 1
      drivers/interrupt_controller/intc_esp32.c

1
drivers/interrupt_controller/intc_esp32.c

@ -607,6 +607,7 @@ int esp_intr_alloc_intrstatus(int source, @@ -607,6 +607,7 @@ int esp_intr_alloc_intrstatus(int source,
/* Mark as unusable for other interrupt sources. This is ours now! */
vd->flags = VECDESC_FL_NONSHARED;
if (handler) {
irq_disable(intr);
irq_connect_dynamic(intr, 0, (intc_dyn_handler_t)handler, arg, 0);
}
if (flags & ESP_INTR_FLAG_EDGE) {

Loading…
Cancel
Save