hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
kernel/drivers/gpu/drm/rockchip/dw-mipi-dsi.c
....@@ -1091,6 +1091,8 @@
10911091 static void dw_mipi_dsi_encoder_disable(struct drm_encoder *encoder)
10921092 {
10931093 struct dw_mipi_dsi *dsi = encoder_to_dsi(encoder);
1094
+ struct drm_crtc *crtc = encoder->crtc;
1095
+ struct rockchip_crtc_state *s = to_rockchip_crtc_state(crtc->state);
10941096
10951097 if (dsi->panel)
10961098 drm_panel_disable(dsi->panel);
....@@ -1105,6 +1107,11 @@
11051107
11061108 if (IS_ENABLED(CONFIG_CPU_RK3568) && dsi->pdata->soc_type == RK3568)
11071109 vop2_standby(encoder->crtc, 0);
1110
+
1111
+ if (dsi->slave)
1112
+ s->output_if &= ~(VOP_OUTPUT_IF_MIPI1 | VOP_OUTPUT_IF_MIPI0);
1113
+ else
1114
+ s->output_if &= ~(dsi->id ? VOP_OUTPUT_IF_MIPI1 : VOP_OUTPUT_IF_MIPI0);
11081115 }
11091116
11101117 static void dw_mipi_dsi_vop_routing(struct dw_mipi_dsi *dsi)