Skip to content

Commit c3aa658

Browse files
Raffael Rostagnodanieldegrasse
authored andcommitted
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>
1 parent 00372dd commit c3aa658

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/interrupt_controller/intc_esp32.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,7 @@ int esp_intr_alloc_intrstatus(int source,
607607
/* Mark as unusable for other interrupt sources. This is ours now! */
608608
vd->flags = VECDESC_FL_NONSHARED;
609609
if (handler) {
610+
irq_disable(intr);
610611
irq_connect_dynamic(intr, 0, (intc_dyn_handler_t)handler, arg, 0);
611612
}
612613
if (flags & ESP_INTR_FLAG_EDGE) {

0 commit comments

Comments
 (0)