File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
drivers/gpu/drm/msm/dsi-staging Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -898,6 +898,11 @@ static bool dc_set_backlight(struct dsi_panel *panel, u32 bl_lvl)
898898 }
899899}
900900
901+ bool hbm_skip_set_backlight (struct dsi_panel * panel , u32 bl_lvl )
902+ {
903+ return panel -> hbm_mode && bl_lvl && bl_lvl != 0 && panel -> last_bl_lvl != 0 ;
904+ }
905+
901906int dsi_panel_set_backlight (struct dsi_panel * panel , u32 bl_lvl )
902907{
903908 int rc = 0 ;
@@ -909,6 +914,11 @@ int dsi_panel_set_backlight(struct dsi_panel *panel, u32 bl_lvl)
909914
910915 pr_debug ("backlight type:%d lvl:%d\n" , bl -> type , bl_lvl );
911916
917+ if (hbm_skip_set_backlight (panel , bl_lvl )) {
918+ panel -> last_bl_lvl = bl_lvl ;
919+ return rc ;
920+ }
921+
912922 if (dc_set_backlight (panel , bl_lvl )) {
913923 panel -> last_bl_lvl = bl_lvl ;
914924 pr_debug ("set dc backlight bacase dc enable %d, bl %d\n" , panel -> dc_enable , bl_lvl );
You can’t perform that action at this time.
0 commit comments