Commit a0ea697a authored by Ramalingam C's avatar Ramalingam C Committed by Daniel Vetter

drm/i915: Fix platform coverage for HDCP1.4

HDCP1.4 is enabled and validated only on GEN9+ platforms.

v2:
  Removed the unnecessary parens [Ville]
Signed-off-by: default avatarRamalingam C <ramalingam.c@intel.com>
Reviewed-by: default avatarSean Paul <sean@poorly.run>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/1544010283-20223-3-git-send-email-ramalingam.c@intel.com
parent 083d2a07
...@@ -769,8 +769,7 @@ static void intel_hdcp_prop_work(struct work_struct *work) ...@@ -769,8 +769,7 @@ static void intel_hdcp_prop_work(struct work_struct *work)
bool is_hdcp_supported(struct drm_i915_private *dev_priv, enum port port) bool is_hdcp_supported(struct drm_i915_private *dev_priv, enum port port)
{ {
/* PORT E doesn't have HDCP, and PORT F is disabled */ /* PORT E doesn't have HDCP, and PORT F is disabled */
return ((INTEL_GEN(dev_priv) >= 8 || IS_HASWELL(dev_priv)) && return INTEL_GEN(dev_priv) >= 9 && port < PORT_E;
!IS_CHERRYVIEW(dev_priv) && port < PORT_E);
} }
int intel_hdcp_init(struct intel_connector *connector, int intel_hdcp_init(struct intel_connector *connector,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment