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

Commit c56d354c authored by Siddartha Mohanadoss's avatar Siddartha Mohanadoss
Browse files

msm: mhi_dev: Update channel state on start command



After receiving channel start command update channel
state. This prevents channel read to fail after a
channel reset followed by start command.

Change-Id: Id534a4c65e8f5bba02fff814c1d763635ff9fb7e
Signed-off-by: default avatarSiddartha Mohanadoss <smohanad@codeaurora.org>
parent e2399b46
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -779,6 +779,7 @@ static void mhi_dev_process_cmd_ring(struct mhi_dev *mhi,

		/* set the channel to running */
		mhi->ch_ctx_cache[ch_id].ch_state = MHI_DEV_CH_STATE_RUNNING;
		mhi->ch[ch_id].state = MHI_DEV_CH_STARTED;
		mhi->ch[ch_id].ch_id = ch_id;
		mhi->ch[ch_id].ring = &mhi->ring[mhi->ch_ring_start + ch_id];
		mhi->ch[ch_id].ch_type = mhi->ch_ctx_cache[ch_id].ch_type;