]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Revert "drm/i915/hdcp: Don't enable HDCP1.4 directly from check_link"
authorSuraj Kandpal <suraj.kandpal@intel.com>
Fri, 3 Jan 2025 08:45:17 +0000 (14:15 +0530)
committerTvrtko Ursulin <tursulin@ursulin.net>
Wed, 8 Jan 2025 08:53:35 +0000 (08:53 +0000)
This reverts commit 483f7d94a0453564ad9295288c0242136c5f36a0.
This needs to be reverted since HDCP even after updating the connector
state HDCP property we don't reenable HDCP until the next commit
in which the CP Property is set causing compliance to fail.

--v2
-Fix build issue [Dnyaneshwar]

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Dnyaneshwar Bhadane <dnyaneshwar.bhadane@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250103084517.239998-1-suraj.kandpal@intel.com
(cherry picked from commit fcf73e20cd1fe60c3ba5f9626f1e8f9cd4511edf)
Signed-off-by: Tvrtko Ursulin <tursulin@ursulin.net>
drivers/gpu/drm/i915/display/intel_hdcp.c

index f57e4dba2873cca5f74f63c705993c6a42bf7f00..8fee26d791f4fe7e63e1d6e4c3f1b941a64bd2ee 100644 (file)
@@ -1158,9 +1158,15 @@ static int intel_hdcp_check_link(struct intel_connector *connector)
                goto out;
        }
 
-       intel_hdcp_update_value(connector,
-                               DRM_MODE_CONTENT_PROTECTION_DESIRED,
-                               true);
+       ret = intel_hdcp1_enable(connector);
+       if (ret) {
+               drm_err(display->drm, "Failed to enable hdcp (%d)\n", ret);
+               intel_hdcp_update_value(connector,
+                                       DRM_MODE_CONTENT_PROTECTION_DESIRED,
+                                       true);
+               goto out;
+       }
+
 out:
        mutex_unlock(&dig_port->hdcp_mutex);
        mutex_unlock(&hdcp->mutex);