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

Commit c4f800cf authored by Ping Li's avatar Ping Li Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/sde: Add check before applying color-prop properties



After device goes into suspend state for a while, we notice that
atomic commit calls are made, and they will cause all the dirty
color-processing properties to be applied during suspend state.
When device actually resumes, all the dirty color-processing
won't be applied again and cause color-processing features not
persist over suspend/resume.
This change adds a check to make sure sde_crtc is enabled before
applying color-processing properties to avoid the issue.

Change-Id: I62acfd65bac4ce93eb82a6cede4df9d12746b22e
Signed-off-by: default avatarPing Li <pingli@codeaurora.org>
parent cf45c2a8
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -3281,7 +3281,8 @@ static void sde_crtc_atomic_begin(struct drm_crtc *crtc,
	 * smmu state is attached,
	 * smmu state is attached,
	 */
	 */
	if ((smmu_state->state != DETACHED) &&
	if ((smmu_state->state != DETACHED) &&
			(smmu_state->state != DETACH_ALL_REQ))
			(smmu_state->state != DETACH_ALL_REQ) &&
			sde_crtc->enabled)
		sde_cp_crtc_apply_properties(crtc);
		sde_cp_crtc_apply_properties(crtc);


	/*
	/*