Skip to content

Commit 93c38a6

Browse files
pwnrazronettboots
authored andcommitted
dsi_display: do not set hbm_mode if in autohbm
If user turns off HBM manually when in autohbm it will turn screen completely off Unsure of proper fix Signed-off-by: onettboots <blackcocopet@gmail.com>
1 parent 1c990be commit 93c38a6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/gpu/drm/msm/dsi-staging/dsi_display.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5128,6 +5128,9 @@ static ssize_t sysfs_hbm_write(struct device *dev,
51285128
if (!display->panel)
51295129
return -EINVAL;
51305130

5131+
if (display->panel->bl_config.bl_level > 2047)
5132+
return count;
5133+
51315134
ret = kstrtoint(buf, 10, &hbm_mode);
51325135
if (ret) {
51335136
pr_err("kstrtoint failed. ret=%d\n", ret);

0 commit comments

Comments
 (0)