]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
remoteproc: imx_rproc: Initialize workqueue earlier
authorPeng Fan <peng.fan@nxp.com>
Fri, 19 Jul 2024 08:36:13 +0000 (16:36 +0800)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Mon, 29 Jul 2024 15:42:07 +0000 (09:42 -0600)
commit858e57c1d3dd7b92cc0fa692ba130a0a5d57e49d
tree4dde8d6f02670545e125ac3c3e8700b99b458904
parente954a1bd16102abc800629f9900715d8ec4c3130
remoteproc: imx_rproc: Initialize workqueue earlier

Initialize workqueue before requesting mailbox channel, otherwise if
mailbox interrupt comes before workqueue ready, the imx_rproc_rx_callback
will trigger issue.

Fixes: 2df7062002d0 ("remoteproc: imx_proc: enable virtio/mailbox")
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Link: https://lore.kernel.org/r/20240719-imx_rproc-v2-3-10d0268c7eb1@nxp.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/imx_rproc.c