From f04aab637d11b85f8a9d342769f5f3a094c2e1bc Mon Sep 17 00:00:00 2001 From: Sandor Yu Date: Tue, 21 Aug 2012 16:49:28 +0800 Subject: [PATCH] ENGR00179425 HDMI: Sometime HDMI EDID read failed EDID read will failed sometimes on some boards. Read EDID twice if first one failed. Signed-off-by: Sandor Yu --- drivers/video/mxc_hdmi.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/video/mxc_hdmi.c b/drivers/video/mxc_hdmi.c index ec50d1922995..d5f3b5dc3096 100644 --- a/drivers/video/mxc_hdmi.c +++ b/drivers/video/mxc_hdmi.c @@ -1678,6 +1678,13 @@ static void mxc_hdmi_cable_connected(struct mxc_hdmi *hdmi) /* HDMI Initialization Step C */ edid_status = mxc_hdmi_read_edid(hdmi); + /* Read EDID again if first EDID read failed */ + if (edid_status == HDMI_EDID_NO_MODES || + edid_status == HDMI_EDID_FAIL) { + dev_info(&hdmi->pdev->dev, "Read EDID again\n"); + edid_status = mxc_hdmi_read_edid(hdmi); + } + /* HDMI Initialization Steps D, E, F */ switch (edid_status) { case HDMI_EDID_SUCCESS: -- 2.39.5