mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user