Commit 2d4e8027 authored by Icenowy Zheng's avatar Icenowy Zheng Committed by Neil Armstrong
Browse files

drm/panel: himax-hx83102: restore MODE_LPM after sending disable cmds



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 screen unblanking (after blanking once) on
mt8188-geralt-ciri-sku1 device.

Cc: stable@vger.kernel.org # 6.11+
Fixes: 0ef94554 ("drm/panel: himax-hx83102: Break out as separate driver")
Signed-off-by: default avatarIcenowy Zheng <zhengxingda@iscas.ac.cn>
Reviewed-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: default avatarDouglas Anderson <dianders@chromium.org>
Signed-off-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
Link: https://patch.msgid.link/20260425165751.1716569-1-zhengxingda@iscas.ac.cn
parent 570cf799
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -937,6 +937,8 @@ static int hx83102_disable(struct drm_panel *panel)
	mipi_dsi_dcs_set_display_off_multi(&dsi_ctx);
	mipi_dsi_dcs_enter_sleep_mode_multi(&dsi_ctx);

	dsi->mode_flags |= MIPI_DSI_MODE_LPM;

	mipi_dsi_msleep(&dsi_ctx, 150);

	return dsi_ctx.accum_err;