Skip to content

Commit 46bc180

Browse files
Icenowygregkh
authored andcommitted
drm/panel: boe-tv101wum-nl6: restore MODE_LPM after sending disable cmds
commit 570cf79 upstream. When preparing the panel, it seems that it always expects commands to be transferred in LP mode. However, the disable function removes the MIPI_DSI_MODE_LPM flag, and no other function re-adds it. As the unprepare function contains no DSI commands, re-adding the flag just after disabling the panel should be safe. Add the code re-adding the flag after the two commands for disabling the panel are sent. This fixes error messages shown in kernel log when unblanking on mt8183-kukui-kodama-sku32 device. Cc: stable@vger.kernel.org Fixes: a869b9d ("drm/panel: support for boe tv101wum-nl6 wuxga dsi video mode panel") Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://patch.msgid.link/20260503091708.1079962-1-zhengxingda@iscas.ac.cn Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 73af14b commit 46bc180

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,6 +1324,8 @@ static int boe_panel_disable(struct drm_panel *panel)
13241324
mipi_dsi_dcs_set_display_off_multi(&ctx);
13251325
mipi_dsi_dcs_enter_sleep_mode_multi(&ctx);
13261326

1327+
boe->dsi->mode_flags |= MIPI_DSI_MODE_LPM;
1328+
13271329
mipi_dsi_msleep(&ctx, 150);
13281330

13291331
return ctx.accum_err;

0 commit comments

Comments
 (0)