drm/i915: Read Vprime thrice incase of mismatch
authorRamalingam C <ramalingam.c@intel.com>
Mon, 2 Apr 2018 10:10:32 +0000 (15:40 +0530)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 4 Apr 2018 19:00:32 +0000 (12:00 -0700)
commit41baafae293d617dc89ba320be662afffc5ada6d
treee9c927b1207cfbbd751e669d37aba5153807b453
parent4bfbec68966082f046232a011d6f371e8554bb40
drm/i915: Read Vprime thrice incase of mismatch

In case of V prime mismatch, DP HDCP spec mandates the re-read of
Vprime atleast twice.

This patch needed for DP HDCP1.4 CTS Test: 1B-05.

v2:
  Moved the V' validation into a function for retry. [Sean Paul]
v3:
  Removed Inline keyword and DRM_DEBUG_KMS are used [Sean Paul]

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