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

Commit 118f77bd authored by Sricharan R's avatar Sricharan R Committed by Gerrit - the friendly Code Review server
Browse files

rpmsg: glink: Return -EAGAIN when there is no FIFO space



The TX FIFO can be full, if the remote client has
not read enough data (or) reading it slowly. So its
nessecary to return -EAGAIN to the local client to
enable retry.

Change-Id: If93ab28ffed4b5bdd3c017d0bf48b7018837ded6
Signed-off-by: default avatarSricharan R <sricharan@codeaurora.org>
parent e8b4cd76
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -233,7 +233,7 @@ static int qcom_glink_tx(struct qcom_glink *glink,

	while (qcom_glink_tx_avail(glink) < tlen) {
		if (!wait) {
			ret = -ENOMEM;
			ret = -EAGAIN;
			goto out;
		}