From fdca0837298c1c01eaae697069f1df49b7243f32 Mon Sep 17 00:00:00 2001 From: Sandor Yu Date: Fri, 20 Sep 2019 15:27:34 +0800 Subject: [PATCH] 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 --- drivers/video/fbdev/mxc/mxc_hdmi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */ -- 2.17.1