Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a51f10a authored by Vidyakumar Athota's avatar Vidyakumar Athota Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarVidyakumar Athota <vathota@codeaurora.org>
parent ce610f2f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}

/*