From 5b176bf44487d2fc31f61dec803e6ba08a6b57c9 Mon Sep 17 00:00:00 2001 From: Xu Yang Date: Mon, 17 Jun 2019 12:26:37 +0800 Subject: [PATCH] drm: msm: Do not check for 0 mixer count The first frame may not have the mixer setup, but the properties can be applied later on. Change-Id: Ic21d751ee7b5375ed49bacb481d8f34875bf0190 --- msm/sde/sde_color_processing.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/msm/sde/sde_color_processing.c b/msm/sde/sde_color_processing.c index 42dd8a742be3..0e88ac18841c 100644 --- a/msm/sde/sde_color_processing.c +++ b/msm/sde/sde_color_processing.c @@ -1453,8 +1453,7 @@ int sde_cp_crtc_set_property(struct drm_crtc *crtc, * crtc. Check LM and dspp counts based on whether feature is a * dspp/lm feature. */ - if (!sde_crtc->num_mixers || - sde_crtc->num_mixers > ARRAY_SIZE(sde_crtc->mixers)) { + if (sde_crtc->num_mixers > ARRAY_SIZE(sde_crtc->mixers)) { DRM_INFO("Invalid mixer config act cnt %d max cnt %ld\n", sde_crtc->num_mixers, (long)ARRAY_SIZE(sde_crtc->mixers));