mxc_hdmi: Fix hang during boot
If HDMI has been in use by the bootloader or a previous running kernel it hangs when HDMI cable is connected. Move the enabling of overflow_into mxc_hdmi_setup() to fix this issue. Original patch is from Jon Nettleton based on a 3.10 kernel: https://github.com/xbianonpi/xbian-package-kernel/blob/master/patches/imx6/hdmi-freeze.patch Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> (cherry picked from commit 09845b886c1198c9461de424ffd95dde363324c1)
This commit is contained in:
parent
7c14829d6f
commit
ed8f0b9daf
|
@ -1268,9 +1268,6 @@ static void mxc_hdmi_phy_init(struct mxc_hdmi *hdmi)
|
|||
|| (hdmi->blank != FB_BLANK_UNBLANK))
|
||||
return;
|
||||
|
||||
if (!hdmi->hdmi_data.video_mode.mDVI)
|
||||
hdmi_enable_overflow_interrupts();
|
||||
|
||||
/*check csc whether needed activated in HDMI mode */
|
||||
cscon = (isColorSpaceConversion(hdmi) &&
|
||||
!hdmi->hdmi_data.video_mode.mDVI);
|
||||
|
@ -2270,6 +2267,9 @@ static void mxc_hdmi_setup(struct mxc_hdmi *hdmi, unsigned long event)
|
|||
msleep(20);
|
||||
mxc_hdmi_clear_overflow(hdmi);
|
||||
|
||||
if (!hdmi->hdmi_data.video_mode.mDVI)
|
||||
hdmi_enable_overflow_interrupts();
|
||||
|
||||
dev_dbg(&hdmi->pdev->dev, "%s exit\n\n", __func__);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue