mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
drm/rockchip: dsi2: fix support dynamic binding to different vp port
Fixed VOP_OUTPUT_IF_MIPI being turned off when switching resolution Signed-off-by: Lei Chen <lei.chen@rock-chips.com> Change-Id: I4f432a7d352578baa9351e2f859afd67b4ea0152
This commit is contained in:
@@ -448,8 +448,6 @@ static void dw_mipi_dsi2_encoder_disable(struct drm_encoder *encoder)
|
||||
struct drm_crtc *crtc = encoder->crtc;
|
||||
struct rockchip_crtc_state *s = to_rockchip_crtc_state(crtc->state);
|
||||
|
||||
s->output_if &= ~(dsi2->id ? VOP_OUTPUT_IF_MIPI1 : VOP_OUTPUT_IF_MIPI0);
|
||||
|
||||
if (dsi2->panel)
|
||||
drm_panel_disable(dsi2->panel);
|
||||
|
||||
@@ -465,6 +463,11 @@ static void dw_mipi_dsi2_encoder_disable(struct drm_encoder *encoder)
|
||||
drm_panel_unprepare(dsi2->panel);
|
||||
|
||||
dw_mipi_dsi2_post_disable(dsi2);
|
||||
|
||||
if (!crtc->state->active_changed)
|
||||
return;
|
||||
|
||||
s->output_if &= ~(dsi2->id ? VOP_OUTPUT_IF_MIPI1 : VOP_OUTPUT_IF_MIPI0);
|
||||
}
|
||||
|
||||
static void dw_mipi_dsi2_set_lane_rate(struct dw_mipi_dsi2 *dsi2)
|
||||
|
||||
Reference in New Issue
Block a user