Skip to content

Commit c3281ab

Browse files
Gwenael Treuveurmathieupoirier
authored andcommitted
remoteproc: stm32_rproc: Fix mailbox interrupts queuing
Manage interrupt coming from coprocessor also when state is ATTACHED. Fixes: 35bdafd ("remoteproc: stm32_rproc: Add mutex protection for workqueue") Cc: stable@vger.kernel.org Signed-off-by: Gwenael Treuveur <gwenael.treuveur@foss.st.com> Acked-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com> Link: https://lore.kernel.org/r/20240521162316.156259-1-gwenael.treuveur@foss.st.com Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
1 parent f720fa0 commit c3281ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/remoteproc/stm32_rproc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ static void stm32_rproc_mb_vq_work(struct work_struct *work)
294294

295295
mutex_lock(&rproc->lock);
296296

297-
if (rproc->state != RPROC_RUNNING)
297+
if (rproc->state != RPROC_RUNNING && rproc->state != RPROC_ATTACHED)
298298
goto unlock_mutex;
299299

300300
if (rproc_vq_interrupt(rproc, mb->vq_id) == IRQ_NONE)

0 commit comments

Comments
 (0)