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

Commit d0e1b944 authored by Yan He's avatar Yan He Committed by Gerrit - the friendly Code Review server
Browse files

mhi_dev: mhi: Fix a bug in stop command processing



Write offset should not be updated at the beginning of stop command
processing. The change here fixes this issue.

Change-Id: Iec96b9d1e3207f412c760a288d65d6900e218dda
Signed-off-by: default avatarYan He <yanhe@codeaurora.org>
parent 009f85a6
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -587,8 +587,6 @@ static int mhi_dev_process_stop_cmd(struct mhi_dev_ring *ring, uint32_t ch_id,
	int rc = 0;
	struct mhi_addr host_addr;

	mhi_dev_update_wr_offset(ring);

	if (ring->rd_offset != ring->wr_offset &&
		mhi->ch_ctx_cache[ch_id].ch_type ==
				MHI_DEV_CH_TYPE_OUTBOUND_CHANNEL) {