From: Sricharan R Date: Thu, 24 Aug 2017 07:21:28 +0000 (+0530) Subject: rpmsg: glink: Return -EAGAIN when there is no FIFO space X-Git-Tag: v4.14~374^2~19 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=a7df9dfcfdfc7d7a0537405d4069accf51f56e49;p=mirror_ubuntu-bionic-kernel.git 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 Signed-off-by: Sricharan R Signed-off-by: Bjorn Andersson --- 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; }