Commit a7df9dfc authored by Sricharan R's avatar Sricharan R Committed by Bjorn Andersson

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.
Acked-by: default avatarArun Kumar Neelakantam <aneela@codeaurora.org>
Signed-off-by: default avatarSricharan R <sricharan@codeaurora.org>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent 7339859d
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment