]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00179425 HDMI: Sometime HDMI EDID read failed
authorSandor Yu <R01008@freescale.com>
Tue, 21 Aug 2012 08:49:28 +0000 (16:49 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:16 +0000 (08:35 +0200)
EDID read will failed sometimes on some boards.
Read EDID twice if first one failed.

Signed-off-by: Sandor Yu <R01008@freescale.com>
drivers/video/mxc_hdmi.c

index ec50d1922995a9d97f8c421d305730940826f4e4..d5f3b5dc3096d56952bee34f4cd7f2f1c65e88e8 100644 (file)
@@ -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: