omapdrm: hdmi4: move hdmi4_core_powerdown_disable to hdmi_power_on_core()
authorHans Verkuil <hansverk@cisco.com>
Wed, 2 Aug 2017 08:54:04 +0000 (10:54 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 12 Oct 2017 07:49:14 +0000 (10:49 +0300)
Call hdmi4_core_powerdown_disable() in hdmi_power_on_core() to
power up the HDMI core (needed for CEC). The same call can now be dropped
in hdmi4_configure().

Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/dss/hdmi4.c
drivers/gpu/drm/omapdrm/dss/hdmi4_core.c

index b5d78028024f588c2db646ee3ce45ed91e735299..91c2a1e8b324a835d6f587c8ce5d00c22f92523f 100644 (file)
@@ -132,6 +132,8 @@ static int hdmi_power_on_core(struct omap_dss_device *dssdev)
        if (r)
                goto err_runtime_get;
 
+       hdmi4_core_powerdown_disable(&hdmi.core);
+
        /* Make selection of HDMI in DSS */
        dss_select_hdmi_venc_clk_source(DSS_HDMI_M_PCLK);
 
index 47a6b7035ead850c42cab8dd6eabd26d00b800cc..62e451162d96f6fe4064c05bf60eaee430d15788 100644 (file)
@@ -335,9 +335,6 @@ void hdmi4_configure(struct hdmi_core_data *core,
         */
        hdmi_core_swreset_assert(core);
 
-       /* power down off */
-       hdmi4_core_powerdown_disable(core);
-
        v_core_cfg.pkt_mode = HDMI_PACKETMODE24BITPERPIXEL;
        v_core_cfg.hdmi_dvi = cfg->hdmi_dvi_mode;