drm/i915: II stage HDCP auth for repeater only
authorRamalingam C <ramalingam.c@intel.com>
Thu, 18 Jan 2018 05:48:06 +0000 (11:18 +0530)
committerSean Paul <seanpaul@chromium.org>
Thu, 18 Jan 2018 22:55:13 +0000 (17:55 -0500)
Second stage of HDCP authentication required only if the HDCP
sink is a repeater.

This patch imposes above condition on second stage HDCP authentication.

Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1516254488-4971-3-git-send-email-ramalingam.c@intel.com
drivers/gpu/drm/i915/intel_hdcp.c

index e49ca7fe893fdc74db21f2d9064d41efd030d1b8..c8e611af408e46b79ee23201a009ff3a6a440e8b 100644 (file)
@@ -493,7 +493,10 @@ static int intel_hdcp_auth(struct intel_digital_port *intel_dig_port,
         * on those as well.
         */
 
-       return intel_hdcp_auth_downstream(intel_dig_port, shim);
+       if (repeater_present)
+               return intel_hdcp_auth_downstream(intel_dig_port, shim);
+
+       return 0;
 }
 
 static