summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDhoat Harpal <hdhoat@codeaurora.org>2017-12-14 17:24:17 +0530
committerDhoat Harpal <hdhoat@codeaurora.org>2017-12-14 21:39:15 +0530
commite92da40a5db5ad9c42a62d66edfc246c2103765c (patch)
treeda0ef5f70d0e6e812a2d1eb63004027bb1599d86
parentbc77e3808a317324ec0182a6651ae047f9fd2a94 (diff)
soc: qcom: glink_smem_native_xport: Send blocked signal command
Glink smem xprt driver is not sending blocked signal command to remote side, when fifo gets full during tx_data. This results in Glink tx_thread taking longer time in sending data to remote side. Glink smem xprt driver sends blocked signal command. CRs-Fixed: 2154819 Change-Id: I105fce28449db2dd0931292cd6850d2409ae683d Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
-rw-r--r--drivers/soc/qcom/glink_smem_native_xprt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/soc/qcom/glink_smem_native_xprt.c b/drivers/soc/qcom/glink_smem_native_xprt.c
index 042108d4035b..d97070d1f2ee 100644
--- a/drivers/soc/qcom/glink_smem_native_xprt.c
+++ b/drivers/soc/qcom/glink_smem_native_xprt.c
@@ -1980,6 +1980,7 @@ static int tx_data(struct glink_transport_if *if_ptr, uint16_t cmd_id,
/* Need enough space to write the command and some data */
if (size <= sizeof(cmd)) {
einfo->tx_resume_needed = true;
+ send_tx_blocked_signal(einfo);
spin_unlock_irqrestore(&einfo->write_lock, flags);
srcu_read_unlock(&einfo->use_ref, rcu_id);
return -EAGAIN;