summaryrefslogtreecommitdiff
path: root/drivers/rpmsg
diff options
context:
space:
mode:
authorSricharan R <sricharan@codeaurora.org>2017-08-24 10:21:28 +0300
committerBjorn Andersson <bjorn.andersson@linaro.org>2017-08-30 00:29:33 +0300
commita7df9dfcfdfc7d7a0537405d4069accf51f56e49 (patch)
tree627a8eb886ed5a79db27b27e115ce590a6597391 /drivers/rpmsg
parent7339859da8dfa8924047a5917ceb06f479b35fcb (diff)
downloadlinux-a7df9dfcfdfc7d7a0537405d4069accf51f56e49.tar.xz
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: Arun Kumar Neelakantam <aneela@codeaurora.org> Signed-off-by: Sricharan R <sricharan@codeaurora.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/rpmsg')
-rw-r--r--drivers/rpmsg/qcom_glink_native.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rpmsg/qcom_glink_native.c b/drivers/rpmsg/qcom_glink_native.c
index a6394cdce1ac..94b79e8d8d44 100644
--- a/drivers/rpmsg/qcom_glink_native.c
+++ b/drivers/rpmsg/qcom_glink_native.c
@@ -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;
}