From 7ff6dcdbea186659a68c32a2462b85540483ec8c Mon Sep 17 00:00:00 2001 From: Noe Galea-Sevilla Date: Wed, 7 May 2025 15:31:09 +0100 Subject: [PATCH] mod/smcf: Fix wrong MGI interrupt clear mask MGI interrupts should be cleared by setting the corresponding MGI_IRQ_STAT bits to 1, but the current implementation sets them to 0 instead. This commit fixes the wrong bit mask to clear MGI interrupts. Signed-off-by: Noe Galea-Sevilla --- module/smcf/src/mgi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/smcf/src/mgi.c b/module/smcf/src/mgi.c index 10d75185f..f794da200 100644 --- a/module/smcf/src/mgi.c +++ b/module/smcf/src/mgi.c @@ -459,7 +459,7 @@ void mgi_interrupt_source_clear( struct smcf_mgi_reg *smcf_mgi, uint32_t interrupt_source_pos) { - smcf_mgi->IRQ_STAT &= ~(1 << interrupt_source_pos); + smcf_mgi->IRQ_STAT |= (1 << interrupt_source_pos); } /* Interrupt mask */ -- GitLab