]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/hdcp: return correct error code
authorAnshuman Gupta <anshuman.gupta@intel.com>
Fri, 19 Mar 2021 10:02:08 +0000 (15:32 +0530)
committerAnshuman Gupta <anshuman.gupta@intel.com>
Mon, 22 Mar 2021 06:52:09 +0000 (12:22 +0530)
commit3a913fa535c185d017625b352a32d1643d1f489e
tree3284acc51d4ed35cdd21adbf965a0931b63677d2
parent8b06f6d8b4d98d2d379effa20d36fe097e179ccf
drm/i915/hdcp: return correct error code

hdcp2_enable_stream_encryption shouldn't get called in case
of any port authentication or encryption error, though
hdcp2_enable_stream_encryption checks for link encryption
before enabling stream encryption and returns error but
this return error code won't be correct in case of any error
due to port authentication and encryption.

Cc: Ramalingam C <ramalingam.c@intel.com>
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210319100208.5886-4-anshuman.gupta@intel.com
drivers/gpu/drm/i915/display/intel_hdcp.c