From 6309c1b1a55df9e931a4768ff22b7bc288be1c1b Mon Sep 17 00:00:00 2001 From: Andy Ross Date: Sat, 23 Nov 2024 21:22:13 -0800 Subject: [PATCH] soc/mediatek/mbox: Enable IRQ This driver forgot to enable its interrupt, but has been working becuase Zephyr apps were always run in a context where the interrupt controller had been initialized by a SOF binary at boot. Signed-off-by: Andy Ross --- soc/mediatek/mt8xxx/mbox.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/soc/mediatek/mt8xxx/mbox.c b/soc/mediatek/mt8xxx/mbox.c index 69fc7b08393..4e0cbb905a6 100644 --- a/soc/mediatek/mt8xxx/mbox.c +++ b/soc/mediatek/mt8xxx/mbox.c @@ -102,7 +102,9 @@ static void mbox_isr(const void *arg) } #define DEF_IRQ(N) \ - IRQ_CONNECT(DT_INST_IRQN(N), 0, mbox_isr, DEVICE_DT_INST_GET(N), 0); + { IRQ_CONNECT(DT_INST_IRQN(N), 0, mbox_isr, DEVICE_DT_INST_GET(N), 0); \ + irq_enable(DT_INST_IRQN(N)); } + static int mbox_init(void) {