drm/rockchip: dsi2: fix dsi2 host configuration process

in order to switch dsi2 working mode, operation DSI2_PWR_UP from
power on to power off and then power on, it may trigger dsi2 host
to send unexpected cmd to panel, resulting in panel abnormality,
therefore, do not operate DSI2_PWR_UP when switching the working
mode.

Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
Change-Id: I78d969dbc16262c9f7367fe5c25688d84cb1f935
This commit is contained in:
Guochun Huang
2021-11-16 09:37:08 +08:00
committed by Tao Huang
parent 1412119f85
commit f218e21726

View File

@@ -786,10 +786,7 @@ static void dw_mipi_dsi2_pre_enable(struct dw_mipi_dsi2 *dsi2)
static void dw_mipi_dsi2_enable(struct dw_mipi_dsi2 *dsi2)
{
regmap_write(dsi2->regmap, DSI2_PWR_UP, RESET);
dw_mipi_dsi2_ipi_set(dsi2);
regmap_write(dsi2->regmap, DSI2_PWR_UP, POWER_UP);
if (dsi2->mode_flags & MIPI_DSI_MODE_VIDEO)
dw_mipi_dsi2_set_vid_mode(dsi2);