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

Commit 74cc2113 authored by Benet Clark's avatar Benet Clark Committed by Gerrit - the friendly Code Review server
Browse files

msm: mdss: Check histogram interrupt request for REQ type



The histogram interrupt request function requires a type associated
with the request. The type depends on suspend, resume, and new requests
in general. Previously, the new requests type was assumed if it was not
SUSPEND or RESUME. However, now REQ type is no longer assumed as the last
option.

Change-Id: I25f6bd7f58ae24301df2552fa8330df8543db277
Signed-off-by: default avatarBenet Clark <benetc@codeaurora.org>
parent 01f3b4c6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3443,7 +3443,8 @@ int mdss_mdp_hist_intr_setup(struct mdss_intr *intr, int type)
		dis = intr->curr;
		intr->curr = 0;
		intr->state = MDSS_INTR_STATE_SUSPEND;
	} else if (intr->state != MDSS_IRQ_SUSPEND) {
	} else if (intr->state != MDSS_IRQ_SUSPEND &&
			type == MDSS_IRQ_REQ) {
		/* Not resuming/suspending or in suspend state */
		diff = intr->req ^ intr->curr;
		en = diff & ~intr->curr;