summaryrefslogtreecommitdiff
path: root/drivers/rpmsg/imx_rpmsg.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rpmsg/imx_rpmsg.c')
-rw-r--r--drivers/rpmsg/imx_rpmsg.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/rpmsg/imx_rpmsg.c b/drivers/rpmsg/imx_rpmsg.c
index 7b6e772393fe..4fed5b07f2bc 100644
--- a/drivers/rpmsg/imx_rpmsg.c
+++ b/drivers/rpmsg/imx_rpmsg.c
@@ -121,8 +121,13 @@ static bool imx_rpmsg_notify(struct virtqueue *vq)
mu_rpmsg = rpvq->vq_id << 16;
mutex_lock(&rpvq->rpdev->lock);
- /* send the index of the triggered virtqueue as the mu payload */
- MU_SendMessage(rpvq->rpdev->mu_base, 1, mu_rpmsg);
+ /*
+ * Send the index of the triggered virtqueue as the mu payload.
+ * Use the timeout MU send message here.
+ * Since that M4 core may not be loaded, and the first MSG may
+ * not be handled by M4 when multi-vdev is enabled.
+ */
+ MU_SendMessageTimeout(rpvq->rpdev->mu_base, 1, mu_rpmsg, 200);
mutex_unlock(&rpvq->rpdev->lock);
return true;