[Intel-gfx] [PATCH v3 2/2] drm/i915/hdcp: Return 0 on config_stream_type() +ve return

Anshuman Gupta anshuman.gupta at intel.com
Thu Feb 20 12:32:17 UTC 2020


As DP shim's config_stream_type returns size of message
to be written in case of success therefore on
config_stream_type success return a zero success
value in order to succeed the HDCP auth.

CC: Ramalingam C <ramalingam.c at intel.com>
Signed-off-by: Anshuman Gupta <anshuman.gupta at intel.com>
---
 drivers/gpu/drm/i915/display/intel_hdcp.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/display/intel_hdcp.c b/drivers/gpu/drm/i915/display/intel_hdcp.c
index 75f60ca282fc..464ef7ba4db4 100644
--- a/drivers/gpu/drm/i915/display/intel_hdcp.c
+++ b/drivers/gpu/drm/i915/display/intel_hdcp.c
@@ -1538,7 +1538,9 @@ static int hdcp2_authenticate_sink(struct intel_connector *connector)
 		ret = shim->config_stream_type(intel_dig_port,
 					       hdcp->is_repeater,
 					       hdcp->content_type);
-		if (ret < 0)
+		if (ret >= 0)
+			ret = 0;
+		else
 			return ret;
 	}
 
-- 
2.24.0



More information about the Intel-gfx mailing list