From 426f309830a37a883fd874cb318e9d9df28ee67e Mon Sep 17 00:00:00 2001 From: tanhua1 Date: Fri, 20 May 2022 14:20:53 +0800 Subject: [PATCH] display: fix Local hbm restore '0' backlight level issue sometimes,finger unlock, turn on FOD HBM first, and the turn on the backlight, this caused the restore '0' brightness that screen can not be turned on. Change-Id: I450373a5b50d30e2147a0a6534bdec007a12b60f Signed-off-by: tanhua1 Reviewed-on: https://gerrit.mot.com/2274898 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- msm/dsi/dsi_panel.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/msm/dsi/dsi_panel.c b/msm/dsi/dsi_panel.c index 772f592191d2..59dfb1190d6e 100644 --- a/msm/dsi/dsi_panel.c +++ b/msm/dsi/dsi_panel.c @@ -882,14 +882,14 @@ int dsi_panel_set_backlight(struct dsi_panel *panel, u32 bl_lvl) if (panel->host_config.ext_bridge_mode) return 0; - if (dsi_panel_set_hbm_backlight(panel, &bl_lvl)) - return 0; - if(panel->lhbm_config.enable) { panel->lhbm_config.dbv_level = bl_lvl; DSI_INFO("backlight type:%d dbv lvl:%d\n", bl->type, bl_lvl); } + if (dsi_panel_set_hbm_backlight(panel, &bl_lvl)) + return 0; + DSI_DEBUG("backlight type:%d lvl:%d\n", bl->type, bl_lvl); switch (bl->type) { case DSI_BACKLIGHT_WLED: