diff options
author | Sricharan R <sricharan@codeaurora.org> | 2017-08-24 09:21:28 +0200 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2017-08-29 23:29:33 +0200 |
commit | a7df9dfcfdfc7d7a0537405d4069accf51f56e49 (patch) | |
tree | 627a8eb886ed5a79db27b27e115ce590a6597391 | |
parent | rpmsg: glink: Allow unaligned data access (diff) | |
download | linux-a7df9dfcfdfc7d7a0537405d4069accf51f56e49.tar.xz linux-a7df9dfcfdfc7d7a0537405d4069accf51f56e49.zip |
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>
-rw-r--r-- | drivers/rpmsg/qcom_glink_native.c | 2 |
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; } |