From ac48ea94f97163cf8ca7ee030dd6f1384a78efb2 Mon Sep 17 00:00:00 2001 From: Ping Li Date: Thu, 16 Feb 2023 11:49:53 -0800 Subject: [PATCH] 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 --- msm/sde/sde_color_processing.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/msm/sde/sde_color_processing.c b/msm/sde/sde_color_processing.c index 04ae2335..e1fb7f5e 100644 --- a/msm/sde/sde_color_processing.c +++ b/msm/sde/sde_color_processing.c @@ -2243,6 +2243,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);