diff options
author | Jakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com> | 2017-05-16 12:00:09 +0200 |
---|---|---|
committer | Klaus Goger <klaus.goger@theobroma-systems.com> | 2017-05-24 11:34:23 +0200 |
commit | 70e0a7d20f1148a516298deab7e891b0f905363e (patch) | |
tree | 5c18ae3bf596b7713aad1f3086f236f7a2b2f143 | |
parent | 020d7749c10116a394ced9c646b1add22e6dc6d2 (diff) |
drm/rockchip: dw-mipi: switch to cmd mode before enabling panel
Panel enable sends an init sequence over the mipi command channel.
We have to be in cmd mode for this to work.
Mainline 4.12 has a similar fix:
https://github.com/torvalds/linux/commit/8a7df73ff97d8b373c132b71a15960402526aa8a
Signed-off-by: Jakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>
-rw-r--r-- | drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi.c index c5dc3766e932..780e8d9f8b59 100644 --- a/drivers/gpu/drm/rockchip/dw-mipi-dsi.c +++ b/drivers/gpu/drm/rockchip/dw-mipi-dsi.c @@ -962,8 +962,9 @@ static void dw_mipi_dsi_encoder_enable(struct drm_encoder *encoder) dw_mipi_dsi_wait_for_two_frames(dsi); - dw_mipi_dsi_set_mode(dsi, DW_MIPI_DSI_VID_MODE); + dw_mipi_dsi_set_mode(dsi, DW_MIPI_DSI_CMD_MODE); drm_panel_enable(dsi->panel); + dw_mipi_dsi_set_mode(dsi, DW_MIPI_DSI_VID_MODE); clk_disable_unprepare(dsi->pclk); |