drm/i915: Retry HDCP bksv read
authorRamalingam C <ramalingam.c@intel.com>
Mon, 5 Feb 2018 17:32:02 +0000 (23:02 +0530)
committerSean Paul <seanpaul@chromium.org>
Mon, 5 Feb 2018 17:59:07 +0000 (12:59 -0500)
commitf622a71d39069e3a0485da436e29ab18eac00b59
treeb6a4ba46da3aceb4f78a6455a8a3c8b9b95bc357
parentcb340bf37173d6d85aa6be881d927352fad382f9
drm/i915: Retry HDCP bksv read

HDCP specification says that when bksv is identified as invalid
(not with 20 1s), bksv should be re-read and verified.

This patch adds the above mentioned re-read for bksv.

v2:
  Rephrased the commit msg [Seanpaul]

v3:
  do-while to for-loop [Seanpaul]

v4:
  retry only if bksv is invalid and no error msg on each attempt
  [Seanpaul]

v5:
  Correcting the return value [Seanpaul].

Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1517851922-30547-1-git-send-email-ramalingam.c@intel.com
drivers/gpu/drm/i915/intel_hdcp.c