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>
This commit is contained in:
Raffael Rostagno 2025-06-03 14:05:32 -03:00 committed by Daniel DeGrasse
commit c3aa6589c3

View file

@ -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) {