From c1263308c7a99174375dac9bcd12757dccee7bb0 Mon Sep 17 00:00:00 2001 From: Yuchao Ma Date: Tue, 1 Sep 2020 17:59:10 +0800 Subject: [PATCH] drm: msm: Reset register when NoiseThresh disabled The change reset register of noise thresh when disabled. Change-Id: I2bb13167b52c6ba92e32c4fa9b4f0a57122164ab Signed-off-by: Yuchao Ma --- msm/sde/sde_hw_color_proc_v4.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/msm/sde/sde_hw_color_proc_v4.c b/msm/sde/sde_hw_color_proc_v4.c index 719f24edbe7f..2fb5c209a42e 100644 --- a/msm/sde/sde_hw_color_proc_v4.c +++ b/msm/sde/sde_hw_color_proc_v4.c @@ -283,7 +283,8 @@ void sde_setup_dspp_ltm_threshv1(struct sde_hw_dspp *ctx, void *cfg) } if (!hw_cfg->payload) { - DRM_ERROR("invalid payload parameters for ltm thresh param\n"); + DRM_DEBUG_DRIVER("Disable LTM noise thresh feature\n"); + SDE_REG_WRITE(&ctx->hw, ctx->cap->sblk->ltm.base + 0x60, 0); return; }