From f2e445edd19d6b67db46cd5d3dd68092feb7dfaf Mon Sep 17 00:00:00 2001 From: Yuan Zhao Date: Mon, 17 Jul 2017 12:48:36 +0800 Subject: [PATCH] msm: mdss: disable HDMI block before HDMI core off Switching HDMI display mode many times, could find sometimes color distortion or no signal display. If disable HDMI block before setting HDMI core off, that could be fixed. Change-Id: Ib0e8002f59e017a81298d4a5a39736a7516e3435 Signed-off-by: Yuan Zhao --- drivers/video/fbdev/msm/mdss_hdmi_tx.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/video/fbdev/msm/mdss_hdmi_tx.c b/drivers/video/fbdev/msm/mdss_hdmi_tx.c index 837147dc5036..831f6c212795 100644 --- a/drivers/video/fbdev/msm/mdss_hdmi_tx.c +++ b/drivers/video/fbdev/msm/mdss_hdmi_tx.c @@ -3145,6 +3145,10 @@ static int hdmi_tx_power_off(struct hdmi_tx_ctrl *hdmi_ctrl) if (hdmi_ctrl->panel_ops.off) hdmi_ctrl->panel_ops.off(pdata); + hdmi_tx_set_mode(hdmi_ctrl, false); + hdmi_tx_phy_reset(hdmi_ctrl); + hdmi_tx_set_mode(hdmi_ctrl, true); + hdmi_tx_core_off(hdmi_ctrl); hdmi_ctrl->panel_power_on = false;