Skip to content

Commit

Permalink
rpmsg: glink: Return -EAGAIN when there is no FIFO space
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sricharan R authored and Bjorn Andersson committed Aug 29, 2017
1 parent 7339859 commit a7df9df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/rpmsg/qcom_glink_native.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a7df9df

Please sign in to comment.