From a958fa1893e366cd93186175c9d518bd005e2b89 Mon Sep 17 00:00:00 2001 From: Algea Cao Date: Thu, 14 Aug 2025 15:35:50 +0800 Subject: [PATCH] drm/bridge: synopsys: dw-hdmi-qp: Make sure video data path is enable when start transmit video When conducting FRL training, the video data transmitted from VOP to HDMI must be disabled. Until the training is successful or fails, then it will be reopened. When the FRL training fails, the video transmission from the video to HDMI is not re-enabled. This will result in the inability to display normally even when switching to tmds mode after training fails. Therefore, regardless of the specific scenario, when switching to the tmds mode, the data transmission from VOP to HDMI must be enabled. Change-Id: I1c853c8197fdf7aaef32c80c5cdb73db13d9ec4c Signed-off-by: Algea Cao --- drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c index d8907856078a..4f3602d98d35 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c @@ -2285,6 +2285,7 @@ static int hdmi_set_op_mode(struct dw_hdmi_qp *hdmi, if (!link_cfg->frl_mode) { dev_info(hdmi->dev, "dw hdmi qp use tmds mode\n"); + hdmi_modb(hdmi, 0, AVP_DATAPATH_VIDEO_SWDISABLE, GLOBAL_SWDISABLE); hdmi_modb(hdmi, 0, OPMODE_FRL, LINK_CONFIG0); hdmi_modb(hdmi, 0, OPMODE_FRL_4LANES, LINK_CONFIG0); if (!hdmi->update) {