From: Zongdong Jiao Date: Mon, 26 Jul 2021 14:21:29 +0000 (+0800) Subject: hdmitx: head the hdmi_pwr in resume [1/4] X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d24a072cd4bd724a56146ae2a3601510b7f03b55;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git hdmitx: head the hdmi_pwr in resume [1/4] 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 --- diff --git a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c index 17f7ce3611d1..5e9eb821f916 100644 --- a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c +++ b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c @@ -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);