From 8a51f10a4e0e79356c9dd1476b8fc5a67b02a322 Mon Sep 17 00:00:00 2001 From: Vidyakumar Athota Date: Fri, 28 Oct 2016 11:56:45 -0700 Subject: [PATCH] soc: qcom: signal buffer response after glink_rx_done() Currently glink rx buffer response signal is updated before calling glink_rx_done(). Since response sent for the command, there is a chance that next command will be sent before glink_rx_done() API called which is not expected from wdsp. Avoid this scenario by calling glink_rx_done() before signaling buffer response. Change-Id: Ifdd0089a6a970792ebd84665178bd4de86eae2fb Signed-off-by: Vidyakumar Athota --- drivers/soc/qcom/wcd-dsp-glink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/wcd-dsp-glink.c b/drivers/soc/qcom/wcd-dsp-glink.c index 97d922fa5724..6bc815862541 100644 --- a/drivers/soc/qcom/wcd-dsp-glink.c +++ b/drivers/soc/qcom/wcd-dsp-glink.c @@ -161,8 +161,8 @@ static void wdsp_glink_notify_rx(void *handle, const void *priv, wpriv->rsp_cnt = ++rsp_cnt; mutex_unlock(&wpriv->rsp_mutex); - complete(&wpriv->rsp_complete); glink_rx_done(handle, ptr, true); + complete(&wpriv->rsp_complete); } /*