From 6017f83390bc39429bfb077e3b9793eae96c8ae7 Mon Sep 17 00:00:00 2001 From: Zongdong Jiao Date: Thu, 28 Jun 2018 14:29:39 +0800 Subject: [PATCH] hdmitx: reactive I2C after resume [1/1] PD#168111: hdmitx: reactive I2C after resume Sometimes, TX devices suspend and close HDMI 5V power, then this may cause I2C clock/data falls and hungup I2C waiting states. Change-Id: Ifd83c19f91a7023a43cebb5654157e207013556c Signed-off-by: Zongdong Jiao --- drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c | 6 +++++- include/linux/amlogic/media/vout/hdmi_tx/hdmi_tx_module.h | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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 da2d162..77d8235 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 @@ -3941,7 +3941,11 @@ static int amhdmitx_suspend(struct platform_device *pdev, static int amhdmitx_resume(struct platform_device *pdev) { - pr_info("amhdmitx: resume module %d\n", __LINE__); + struct hdmitx_dev *hdev = &hdmitx_device; + + pr_debug("amhdmitx: I2C_REACTIVE\n"); + hdev->HWOp.CntlMisc(hdev, MISC_I2C_REACTIVE, 0); + return 0; } #endif diff --git a/include/linux/amlogic/media/vout/hdmi_tx/hdmi_tx_module.h b/include/linux/amlogic/media/vout/hdmi_tx/hdmi_tx_module.h index 359299b..b397411 100644 --- a/include/linux/amlogic/media/vout/hdmi_tx/hdmi_tx_module.h +++ b/include/linux/amlogic/media/vout/hdmi_tx/hdmi_tx_module.h @@ -27,7 +27,7 @@ #include /* HDMITX driver version */ -#define HDMITX_VER "20171127" +#define HDMITX_VER "20180702" /* chip type */ #define MESON_CPU_ID_M8B 0 -- 2.7.4