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

Commit f95824d0 authored by Steve Cohen's avatar Steve Cohen Committed by Gerrit - the friendly Code Review server
Browse files

disp: msm: sde: restart idle power collapse timeout every kickoff



Restart the timeline for the idle power collapse delayed work
timer for every resource control kickoff instead of only during
a power state change. This will prevent entering mode2 at
unexpected times during active scanouts.

Change-Id: I001157ff7e6b6246e26d537e30d8617cab9cb463
Signed-off-by: default avatarSteve Cohen <cohens@codeaurora.org>
parent 6947c549
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1644,9 +1644,10 @@ static int _sde_encoder_rc_kickoff(struct drm_encoder *drm_enc,
			SDE_ENC_RC_STATE_ON, SDE_EVTLOG_FUNC_CASE1);
	sde_enc->rc_state = SDE_ENC_RC_STATE_ON;

end:
	/* restart delayed off work, if required */
	_sde_encoder_rc_restart_delayed(sde_enc, sw_event);
end:

	mutex_unlock(&sde_enc->rc_lock);
	return ret;
}