mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-18 23:29:57 +02:00
remoteproc: imx_rproc: Initialize workqueue earlier
[ Upstream commit858e57c1d3
] Initialize workqueue before requesting mailbox channel, otherwise if mailbox interrupt comes before workqueue ready, the imx_rproc_rx_callback will trigger issue. Fixes:2df7062002
("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
2941577c76
commit
d271e66f74
|
@ -1134,6 +1134,8 @@ static int imx_rproc_probe(struct platform_device *pdev)
|
||||||
goto err_put_rproc;
|
goto err_put_rproc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
INIT_WORK(&priv->rproc_work, imx_rproc_vq_work);
|
||||||
|
|
||||||
ret = imx_rproc_xtr_mbox_init(rproc);
|
ret = imx_rproc_xtr_mbox_init(rproc);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto err_put_wkq;
|
goto err_put_wkq;
|
||||||
|
@ -1152,8 +1154,6 @@ static int imx_rproc_probe(struct platform_device *pdev)
|
||||||
if (ret)
|
if (ret)
|
||||||
goto err_put_scu;
|
goto err_put_scu;
|
||||||
|
|
||||||
INIT_WORK(&priv->rproc_work, imx_rproc_vq_work);
|
|
||||||
|
|
||||||
if (rproc->state != RPROC_DETACHED)
|
if (rproc->state != RPROC_DETACHED)
|
||||||
rproc->auto_boot = of_property_read_bool(np, "fsl,auto-boot");
|
rproc->auto_boot = of_property_read_bool(np, "fsl,auto-boot");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user