hdmitx: head the hdmi_pwr in resume [1/4]
authorZongdong Jiao <zongdong.jiao@amlogic.com>
Mon, 26 Jul 2021 14:21:29 +0000 (22:21 +0800)
committerNolen Johnson <johnsonnolen@gmail.com>
Tue, 21 Dec 2021 18:34:38 +0000 (13:34 -0500)
PD#SWPL-55323

Problem:
the hdmi_pwr is too late in resume

Solution:
head the hdmi_pwr in resume

Verify:
G12/U212

Change-Id: I86bd4dfd0c6b51578cb09fd4fc8902b858de9eae
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c

index 17f7ce3611d184952182155ffb22710ecfcb4d0b..5e9eb821f916dceffab52046418ee434474f29a5 100644 (file)
@@ -287,6 +287,7 @@ static void hdmitx_late_resume(struct early_suspend *h)
        const struct vinfo_s *info = hdmitx_get_current_vinfo();
        struct hdmitx_dev *phdmi = (struct hdmitx_dev *)h->param;
 
+       extcon_set_state_sync(hdmitx_extcon_power, EXTCON_DISP_HDMI, 1);
        /*open vpu clk*/
        if (phdmi->hdmitx_clk_tree.hdmi_clk_vapb != NULL)
                clk_prepare_enable(phdmi->hdmitx_clk_tree.hdmi_clk_vapb);
@@ -318,7 +319,6 @@ static void hdmitx_late_resume(struct early_suspend *h)
 
        extcon_set_state_sync(hdmitx_extcon_hdmi, EXTCON_DISP_HDMI,
                hdmitx_device.hpd_state);
-       extcon_set_state_sync(hdmitx_extcon_power, EXTCON_DISP_HDMI, 1);
        extcon_set_state_sync(hdmitx_extcon_audio, EXTCON_DISP_HDMI,
                hdmitx_device.hpd_state);