Skip to content

Commit a7df9df

Browse files
Sricharan Randersson
authored andcommitted
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>
1 parent 7339859 commit a7df9df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/rpmsg/qcom_glink_native.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ static int qcom_glink_tx(struct qcom_glink *glink,
233233

234234
while (qcom_glink_tx_avail(glink) < tlen) {
235235
if (!wait) {
236-
ret = -ENOMEM;
236+
ret = -EAGAIN;
237237
goto out;
238238
}
239239

0 commit comments

Comments
 (0)