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

Commit 6c5dd86f authored by Chris Lew's avatar Chris Lew
Browse files

mailbox: msm_qmp: Return EAGAIN on failed tx



The mailbox framework will only try to requeue a failed tx when EAGAIN
is returned by the mailbox controller. Return EAGAIN when the mailbox
is full.

Change-Id: I54b73497ec1983e61abbedec3d9c9c648f7e38a2
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent e13b7564
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -359,7 +359,7 @@ static int qmp_send_data(struct mbox_chan *chan, void *data)
	addr = mdev->msgram + mbox->mcore_mbox_offset;
	if (mbox->tx_sent) {
		spin_unlock_irqrestore(&mbox->tx_lock, flags);
		return -EBUSY;
		return -EAGAIN;
	}

	if (pkt->size + sizeof(pkt->size) > mbox->mcore_mbox_size) {