From: Sandor Yu Date: Fri, 20 Sep 2019 07:27:34 +0000 (+0800) Subject: MLK-22084: fbdev: hdmi: Fix HDCP function failed work with Sony TV X-Git-Tag: rel_imx_4.19.35_1.1.0~39 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=fdca0837298c1c01eaae697069f1df49b7243f32;p=linux.git MLK-22084: fbdev: hdmi: Fix HDCP function failed work with Sony TV HDCP function could work in other TVs but it failed with Sony TV when run hdcp enable/disable stress test. The TMDS clock is not detected by Sony TV. The TV seems time sensitive for HDMI TMDS. Add 20ms delay before TMDS enable make it work. Signed-off-by: Sandor Yu --- diff --git a/drivers/video/fbdev/mxc/mxc_hdmi.c b/drivers/video/fbdev/mxc/mxc_hdmi.c index 9d57ad5447ee..e2c221eba456 100644 --- a/drivers/video/fbdev/mxc/mxc_hdmi.c +++ b/drivers/video/fbdev/mxc/mxc_hdmi.c @@ -2262,10 +2262,11 @@ static void mxc_hdmi_setup(struct mxc_hdmi *hdmi, unsigned long event) hdmi_video_csc(hdmi); hdmi_video_sample(hdmi); + /* delay 20ms before tmds start work */ + msleep(20); mxc_hdmi_clear_overflow(hdmi); dev_dbg(&hdmi->pdev->dev, "%s exit\n\n", __func__); - } /* Wait until we are registered to enable interrupts */