From: Sandor Yu Date: Fri, 1 Jun 2012 10:14:12 +0000 (+0800) Subject: ENGR00211844 MX6x HDMI display can't show video to after suspend/resume X-Git-Tag: v3.0.35-fsl~942 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e628b8df81e6ccd1d88e75335fd2691d7af69e74;p=karo-tx-linux.git ENGR00211844 MX6x HDMI display can't show video to after suspend/resume Added hdmi clock gating/ungating when devide suspend/resume Signed-off-by: Sandor Yu --- diff --git a/drivers/video/mxc_hdmi.c b/drivers/video/mxc_hdmi.c index 5ef2c9f2e923..e778b4e91f48 100644 --- a/drivers/video/mxc_hdmi.c +++ b/drivers/video/mxc_hdmi.c @@ -2087,13 +2087,23 @@ static int mxc_hdmi_fb_event(struct notifier_block *nb, case FB_EVENT_SUSPEND: dev_dbg(&hdmi->pdev->dev, "event=FB_EVENT_SUSPEND\n"); - mxc_hdmi_phy_disable(hdmi); + + if (hdmi->blank == FB_BLANK_UNBLANK) { + mxc_hdmi_phy_disable(hdmi); + clk_disable(hdmi->hdmi_iahb_clk); + clk_disable(hdmi->hdmi_isfr_clk); + } break; case FB_EVENT_RESUME: dev_dbg(&hdmi->pdev->dev, "event=FB_EVENT_RESUME\n"); - mxc_hdmi_phy_init(hdmi); + + if (hdmi->blank == FB_BLANK_UNBLANK) { + clk_enable(hdmi->hdmi_iahb_clk); + clk_enable(hdmi->hdmi_isfr_clk); + mxc_hdmi_phy_init(hdmi); + } break; }