tx: fix the system crash

PD#152848: fix the system crash

When box authenticate with TV under hdcp 2.2, the hdcp 2.2 must
be reset in syspend function.

Change-Id: I0c85070893b7a2e17606b05c2df068a8ceb8f774
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
This commit is contained in:
Yi Zhou
2017-11-27 10:39:52 +08:00
committed by Jianxin Pan
parent b25bacca88
commit c0d4c5b3b3
2 changed files with 7 additions and 1 deletions

View File

@@ -3419,6 +3419,9 @@ static int amhdmitx_remove(struct platform_device *pdev)
static int amhdmitx_suspend(struct platform_device *pdev,
pm_message_t state)
{
hdmitx_device.HWOp.CntlDDC(&hdmitx_device,
DDC_RESET_HDCP, 0);
pr_info("amhdmitx: suspend and reset hdcp\n");
return 0;
}

View File

@@ -3466,7 +3466,10 @@ static int hdmitx_cntl_ddc(struct hdmitx_dev *hdev, unsigned int cmd,
hdmitx_wr_reg(HDMITX_DWC_I2CM_READ_BUFF0 + i, 0);
break;
case DDC_RESET_HDCP:
hdmitx_set_reg_bits(HDMITX_TOP_SW_RESET, 1, 5, 1);
udelay(10);
hdmitx_set_reg_bits(HDMITX_TOP_SW_RESET, 0, 5, 1);
udelay(10);
break;
case DDC_HDCP_MUX_INIT:
if (argv == 2) {