]> www.infradead.org Git - users/hch/configfs.git/commitdiff
drm/i915/hdcp: Check mst_port to determine connector type
authorSuraj Kandpal <suraj.kandpal@intel.com>
Tue, 21 May 2024 08:14:57 +0000 (13:44 +0530)
committerSuraj Kandpal <suraj.kandpal@intel.com>
Wed, 22 May 2024 10:03:48 +0000 (15:33 +0530)
Check mst_port field in intel_connector to check connector type
rather than rely on encoder as it may not be attached to connector
at times.

--v2
-Add closes tag [Imre]

Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10898
Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240521081458.1500327-3-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_dp_hdcp.c

index 551c862ed7a6ae9fe98d0fafee4c1169b7235848..2edffe62f360c36519b359acfac5eb743a2fa7e5 100644 (file)
@@ -693,7 +693,7 @@ int intel_dp_hdcp_get_remote_capability(struct intel_connector *connector,
 
        *hdcp_capable = false;
        *hdcp2_capable = false;
-       if (!intel_encoder_is_mst(connector->encoder))
+       if (!connector->mst_port)
                return -EINVAL;
 
        aux = &connector->port->aux;