drm/exynos/hdmi: move hdmi_start to hdmi_mode_apply 03/93303/7
authorAndrzej Hajda <a.hajda@samsung.com>
Fri, 21 Oct 2016 12:14:37 +0000 (14:14 +0200)
committerInki Dae <inki.dae@samsung.com>
Wed, 16 Nov 2016 23:03:50 +0000 (15:03 -0800)
hdmi_start is called for both variants.

Change-Id: I6da89cf21599a760c793121f3ae637eca7cc77ff
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
drivers/gpu/drm/exynos/exynos_hdmi.c

index 396fad51e8405ed4144f4d37aacf2dbc0e019360..ea70e0d33181c48b7fbe1228faeeec612645ec62 100644 (file)
@@ -1659,10 +1659,6 @@ static void hdmi_v13_mode_apply(struct hdmi_context *hdata)
        hdmi_reg_writev(hdata, HDMI_TG_VSYNC_BOT_HDMI_L, 2, 0x233);
        hdmi_reg_writev(hdata, HDMI_TG_FIELD_TOP_HDMI_L, 2, 0x1);
        hdmi_reg_writev(hdata, HDMI_TG_FIELD_BOT_HDMI_L, 2, 0x233);
-
-
-       /* enable HDMI and timing generator */
-       hdmi_start(hdata, true);
 }
 
 static void hdmi_v14_mode_apply(struct hdmi_context *hdata)
@@ -1782,9 +1778,6 @@ static void hdmi_v14_mode_apply(struct hdmi_context *hdata)
 
        if (hdata->drv_data == &exynos5430_hdmi_driver_data)
                hdmi_reg_writeb(hdata, HDMI_TG_DECON_EN, 1);
-
-       /* enable HDMI and timing generator */
-       hdmi_start(hdata, true);
 }
 
 static void hdmi_mode_apply(struct hdmi_context *hdata)
@@ -1793,6 +1786,8 @@ static void hdmi_mode_apply(struct hdmi_context *hdata)
                hdmi_v13_mode_apply(hdata);
        else
                hdmi_v14_mode_apply(hdata);
+
+       hdmi_start(hdata, true);
 }
 
 static void hdmiphy_conf_reset(struct hdmi_context *hdata)