drm/i915: Detect panel's hdcp capability
authorRamalingam C <ramalingam.c@intel.com>
Fri, 2 Feb 2018 22:09:08 +0000 (03:39 +0530)
committerSean Paul <seanpaul@chromium.org>
Mon, 5 Feb 2018 17:59:18 +0000 (12:59 -0500)
commit791a98dd9bcfd214d8ef51d248f377354a9ea683
treea5ae6a5df0c86d5adda3d5a3c5f0f321d4b0b750
parent7ee5798829d2dd95451d844ee8d3cb9a610a0363
drm/i915: Detect panel's hdcp capability

DP HDCP1.4 spec mandates that An can be written to panel only after
detecting the panel's hdcp capability.

For DP 0th Bit of Bcaps register indicates the panel's hdcp capability
For HDMI valid BKSV indicates the panel's hdcp capability.

For HDMI it is optional to detect the panel's hdcp capability before
An Write.

v2:
  Added comments explaining the need for action [Seanpaul].
  Made panel's hdcp capability detection optional for hdmi [Seanpaul].
  Defined a func for reading bcaps for DP [Seanpaul].

v3:
  Removed the NULL initialization [Seanpaul].

Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1517609350-10698-7-git-send-email-ramalingam.c@intel.com
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_hdcp.c