diff options
| author | Narender Ankam <nankam@codeaurora.org> | 2019-08-30 13:21:17 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2020-03-03 02:31:57 -0800 |
| commit | aa19db6cfde4e937957cbcd32dfb70f39b371535 (patch) | |
| tree | 417f2efab1866daed163b8f00ddbc94f30f8fca9 | |
| parent | 2a20222495d3879a2f6061bd7a3f5a2e1350cfcb (diff) | |
msm: mdss: hdcp: read V' only for non-zero device count repeater
For repeaters having zero device count, the HDCP CTS expects
the device under test to either read V' and perform full
authentication or not read V' and re-authenticate.
Current HDCP driver reads V' and also re-authenticates causing
a failure of zero device count repeater test cases.
Fix this issue by implementing the correct sequence
in case of zero downstream devices.
Change-Id: I8f9980196c46c7f9bea56501e1f047e58dfb091d
Signed-off-by: Narender Ankam <nankam@codeaurora.org>
Signed-off-by: Ramendra Kumar <ramendra@codeaurora.org>
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_hdcp_1x.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/video/fbdev/msm/mdss_hdcp_1x.c b/drivers/video/fbdev/msm/mdss_hdcp_1x.c index 8df9080129b9..0b394ea270cd 100644 --- a/drivers/video/fbdev/msm/mdss_hdcp_1x.c +++ b/drivers/video/fbdev/msm/mdss_hdcp_1x.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2017, The Linux Foundation. All rights reserved. +/* Copyright (c) 2010-2020, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -1348,16 +1348,16 @@ static int hdcp_1x_authentication_part2(struct hdcp_1x *hdcp) } do { - rc = hdcp_1x_transfer_v_h(hdcp); - if (rc) - goto error; - /* do not proceed further if no device connected */ if (!hdcp->current_tp.dev_count) { rc = -EINVAL; goto error; } + rc = hdcp_1x_transfer_v_h(hdcp); + if (rc) + goto error; + rc = hdcp_1x_write_ksv_fifo(hdcp); } while (--v_retry && rc); error: |
