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

Commit 6fd99b3e authored by Ping Li's avatar Ping Li Committed by Xu Yang
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.

Signed-off-by: default avatarPing Li <pingli@codeaurora.org>
Signed-off-by: default avatarXu Yang <yangxu@codeaurora.org>
Change-Id: Ia001b5d4074da05d0ad266cb0876e5283b9bdda1
CRs-Fixed: 2234358
parent 150e5aba
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3134,7 +3134,7 @@ static void sde_crtc_atomic_begin(struct drm_crtc *crtc,
	 * apply color processing properties only if
	 * smmu state is attached,
	 */
	if (sde_kms_is_cp_operation_allowed(sde_kms))
	if (sde_kms_is_cp_operation_allowed(sde_kms) && sde_crtc->enabled)
		sde_cp_crtc_apply_properties(crtc);

	/*