drm: msm: skip the color processing programming if crtc is not enabled

Add check to avoid programming the color processing HW if sde_crtc is
not enabled.

Change-Id: I7ffd341147f0caebefb647486a139df5c0aeab31
Signed-off-by: Ping Li <quic_pingli@quicinc.com>
This commit is contained in:
Ping Li
2023-02-16 11:49:53 -08:00
committad av Gerrit - the friendly Code Review server
förälder 32f7d3149a
incheckning 5176514114

Visa fil

@@ -2310,6 +2310,9 @@ void sde_cp_crtc_apply_properties(struct drm_crtc *crtc)
}
_sde_cp_flush_properties(crtc);
if (!sde_crtc->enabled)
return;
mutex_lock(&sde_crtc->crtc_cp_lock);
_sde_clear_ltm_merge_mode(sde_crtc);