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

Commit d16de4c2 authored by Mohammed Javid's avatar Mohammed Javid
Browse files

msm: ipa3: Remove state update in wait for completion



When there is pending interrupt for a channel we continue
in that loop. So, no need for updating state to in-Progress
for continuing in loop again.

Change-Id: I1a6e3b2bc82795099ee3bf6af111e903889db96e
Acked-by: default avatarPraveen Kurapati <pkurapat@qti.qualcomm.com>
Signed-off-by: default avatarMohammed Javid <mjavid@codeaurora.org>
parent bdd918fd
Loading
Loading
Loading
Loading
+2 −10
Original line number Diff line number Diff line
@@ -115,7 +115,6 @@ static void gsi_channel_state_change_wait(unsigned long chan_hdl,
	int gsi_pending_intr;
	int res;
	uint32_t ch;
	uint32_t val;
	int ee = gsi_ctx->per.ee;

	/*
@@ -136,16 +135,9 @@ static void gsi_channel_state_change_wait(unsigned long chan_hdl,
			return;

		/*
		 * Check channel state here in case the channel is
		 * already started but interrupt is not yet received.
		 * for the case of pending interrupt we will continue in the
		 * loop. So state update is not needed.
		 */
		val = gsi_readl(gsi_ctx->base +
			GSI_EE_n_GSI_CH_k_CNTXT_0_OFFS(chan_hdl,
				gsi_ctx->per.ee));

		ctx->state = (val &
			GSI_EE_n_GSI_CH_k_CNTXT_0_CHSTATE_BMSK) >>
			GSI_EE_n_GSI_CH_k_CNTXT_0_CHSTATE_SHFT;

		ch = gsi_readl(gsi_ctx->base +
			GSI_EE_n_CNTXT_TYPE_IRQ_OFFS(gsi_ctx->per.ee));