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 <vathota@codeaurora.org>
This commit is contained in:
Vidyakumar Athota 2016-10-28 11:56:45 -07:00 committed by Gerrit - the friendly Code Review server
parent ce610f2fc9
commit 8a51f10a4e

View file

@ -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);
}
/*