drm/rockchip: dsi2: standby vop2 before dsi2 change from ds to cmd mode

standby vop2 to ensure dsi2 core not busy when DSI2_MODE_CTRL
change from data stream to command mode.

Change-Id: Id46d1a199ae1b9421b61622dd9fca6dda08c2781
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
This commit is contained in:
Guochun Huang 2022-01-04 07:49:18 +00:00 committed by Tao Huang
parent 287dac0f05
commit 69afc70624

View File

@ -447,8 +447,14 @@ static void dw_mipi_dsi2_encoder_disable(struct drm_encoder *encoder)
if (dsi2->panel)
drm_panel_disable(dsi2->panel);
if (!(dsi2->mode_flags & MIPI_DSI_MODE_VIDEO))
vop2_standby(encoder->crtc, 1);
dw_mipi_dsi2_disable(dsi2);
if (!(dsi2->mode_flags & MIPI_DSI_MODE_VIDEO))
vop2_standby(encoder->crtc, 0);
if (dsi2->panel)
drm_panel_unprepare(dsi2->panel);