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

Commit e15d5ede authored by Ashok Vuyyuru's avatar Ashok Vuyyuru
Browse files

msm: ipa3: Adding changes to read the return code if IRQ not received



In some cases GP_INT1 interrupt not receiving even GSI FW send the
interrupt. In those cases cases reading the flow control command return
code to check completion.

Change-Id: I329550ab94af9caac870c6050761d3701f0517cd
Signed-off-by: default avatarAshok Vuyyuru <avuyyuru@codeaurora.org>
parent 92fa5bc4
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -4836,9 +4836,12 @@ int gsi_flow_control_ee(unsigned int chan_idx, unsigned int ee,
		msecs_to_jiffies(GSI_CMD_TIMEOUT));
	if (res == 0) {
		GSIERR("chan_idx=%u ee=%u timed out\n", chan_idx, ee);
		res = -GSI_STATUS_TIMED_OUT;
		GSI_ASSERT();
		goto free_lock;
		GSIERR("GSI_EE_n_CNTXT_GLOB_IRQ_EN_OFFS = 0x%x\n",
				gsi_readl(gsi_ctx->base +
				GSI_EE_n_CNTXT_GLOB_IRQ_EN_OFFS(gsi_ctx->per.ee)));
		GSIERR("GSI_EE_n_CNTXT_GLOB_IRQ_STTS_OFFS IRQ type = 0x%x\n",
				gsi_readl(gsi_ctx->base +
				GSI_EE_n_CNTXT_GLOB_IRQ_STTS_OFFS(gsi_ctx->per.ee)));
	}

	gsi_ctx->scratch.word0.val = gsi_readl(gsi_ctx->base +