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:
parent
00372dd6a9
commit
c3aa6589c3
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue