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

Commit 55c9facc authored by Ram Chandrasekar's avatar Ram Chandrasekar
Browse files

msm: lmh_lite: re-enable lmh interrupt only during polling



There is a possibility that lmh driver will receive interrupts for
back to back short lived hardware throttling condition. Re-enable
interrupt only in polling mode handler to mitigate the impact of
these zero intensity reporting hw throttling conditions.

Change-Id: I938e481b525112c84b0a35648ef0fb730b35c4a4
Signed-off-by: default avatarRam Chandrasekar <rkumbako@codeaurora.org>
parent fbfdd7c9
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -439,13 +439,6 @@ static irqreturn_t lmh_isr_thread(int irq, void *data)
			goto decide_next_action;
		}
	}
	lmh_read_and_update(lmh_dat);
	if (!lmh_dat->intr_status_val) {
		pr_debug("LMH not throttling. Enabling interrupt\n");
		lmh_dat->intr_state = LMH_ISR_MONITOR;
		trace_lmh_event_call("Lmh Zero throttle Interrupt Clear");
		goto decide_next_action;
	}

decide_next_action:
	if (lmh_dat->intr_state == LMH_ISR_POLLING)