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

Commit 2f38feb8 authored by Skylar Chang's avatar Skylar Chang
Browse files

msm: gsi: clear irq agter moving to poll mode



Make the change to clear the irq registers before
movong to polling mode.

Change-Id: I475ab17af34bcec1987ecc3baf533ab558f8f2b3
Signed-off-by: default avatarSkylar Chang <chiaweic@codeaurora.org>
parent c22c0e07
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3234,6 +3234,8 @@ int gsi_config_channel_mode(unsigned long chan_hdl, enum gsi_chan_mode mode)
	if (curr == GSI_CHAN_MODE_CALLBACK &&
			mode == GSI_CHAN_MODE_POLL) {
		__gsi_config_ieob_irq(gsi_ctx->per.ee, 1 << ctx->evtr->id, 0);
		gsi_writel(1 << ctx->evtr->id, gsi_ctx->base +
			GSI_EE_n_CNTXT_SRC_IEOB_IRQ_CLR_OFFS(gsi_ctx->per.ee));
		atomic_set(&ctx->poll_mode, mode);
		ctx->stats.callback_to_poll++;
	}