Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6882c024 authored by Lina Iyer's avatar Lina Iyer Committed by Gerrit - the friendly Code Review server
Browse files

drivers: mailbox: retry message submission



msg_submit() bails if there are no requests in the mailbox queue or if
there is an valid active request that is pending a tx_done response. If
the controller had returned -EAGAIN when trying to send data, the
framework should unlock the spinlock and retry sending the request to
the controller.

Change-Id: I05cd60730b010a8018a3e6107fd340ad8c250fd7
Signed-off-by: default avatarLina Iyer <ilina@codeaurora.org>
parent 50b9a890
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ static void msg_submit(struct mbox_chan *chan)
again:
	spin_lock_irqsave(&chan->lock, flags);

	if (!chan->msg_count || chan->active_req)
	if (!chan->msg_count || (chan->active_req && err != -EAGAIN))
		goto exit;

	count = chan->msg_count;