From aa19db6cfde4e937957cbcd32dfb70f39b371535 Mon Sep 17 00:00:00 2001 From: Narender Ankam Date: Fri, 30 Aug 2019 13:21:17 +0530 Subject: 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 Signed-off-by: Ramendra Kumar --- drivers/video/fbdev/msm/mdss_hdcp_1x.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'drivers') 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: -- cgit v1.2.3