From ebdd80eb4d14d816a9d0eb503ab4d5cd7dde1b5f Mon Sep 17 00:00:00 2001 From: Simon1511 Date: Sat, 6 May 2023 14:00:06 +0200 Subject: [PATCH] sm7125: drm: msm: samsung_lego: properly enable/disable HBM * In some rare cases the backlight brightness would be reset to what HBM brightness was, locking our brightness at a high level Signed-off-by: Simon1511 Change-Id: I578cfe4e052e621fc0fc21bdfd2a651c6aa4d269 --- drivers/gpu/drm/msm/samsung_lego/ss_dsi_panel_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/samsung_lego/ss_dsi_panel_common.c b/drivers/gpu/drm/msm/samsung_lego/ss_dsi_panel_common.c index 824d7e2a1c11..b01038ab0c5c 100755 --- a/drivers/gpu/drm/msm/samsung_lego/ss_dsi_panel_common.c +++ b/drivers/gpu/drm/msm/samsung_lego/ss_dsi_panel_common.c @@ -5951,7 +5951,7 @@ int ss_brightness_dcs(struct samsung_display_driver_data *vdd, int level, int ba vdd->br_info.common_br.finger_mask_hbm_on = true; backup_acl = vdd->br_info.acl_status; - if (vdd->finger_mask_updated) /* do not backup br.bl_level at on to on */ + if (vdd->finger_mask_updated && vdd->br_info.common_br.bl_level != vdd->br_info.common_br.finger_mask_bl_level) /* do not backup br.bl_level at on to on */ backup_bl_level = vdd->br_info.common_br.bl_level; level = vdd->br_info.common_br.finger_mask_bl_level; vdd->br_info.acl_status = 0;