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

Commit c7be54a5 authored by Prudhvi Yarlagadda's avatar Prudhvi Yarlagadda
Browse files

rpmsg: smd: Signal the TX channel that smd driver read data



Signal the TX channel instead of RX channel before sending interrupt
to remote processor to indicate that smd driver read the data in RX
channel.

Change-Id: I76e3cd45a80794f73aba5a18474dad8429d53c72
Signed-off-by: default avatarPrudhvi Yarlagadda <pyarlaga@codeaurora.org>
parent 4abe03d7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -626,7 +626,7 @@ static bool qcom_smd_channel_intr(struct qcom_smd_channel *channel)
	}

	/* Indicate that we have seen and updated tail */
	SET_RX_CHANNEL_FLAG(channel, fTAIL, 1);
	SET_TX_CHANNEL_FLAG(channel, fTAIL, 1);

	/* Signal the remote that we've consumed the data (if requested) */
	if (!GET_RX_CHANNEL_FLAG(channel, fBLOCKREADINTR)) {