]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/hdcp: fix DRM_HDCP_2_KSV_COUNT_2_LSBITS
authorRamalingam C <ramalingam.c@intel.com>
Wed, 12 Feb 2020 10:29:39 +0000 (15:59 +0530)
committerRamalingam C <ramalingam.c@intel.com>
Wed, 4 Mar 2020 01:05:07 +0000 (06:35 +0530)
Need to extract the 2 most significant bits from a byte for constructing
the revoked KSV count of the SRM.

Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Reviewed-by: Anshuman Gupta <anshuman.gupta@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200212102942.26568-3-ramalingam.c@intel.com
include/drm/drm_hdcp.h

index d512089b873f6b42655e53db888a242ba315a670..c6bab4986a658c9f8a650fd4dfbe22fa4a00e009 100644 (file)
@@ -276,7 +276,7 @@ void drm_hdcp_cpu_to_be24(u8 seq_num[HDCP_2_2_SEQ_NUM_LEN], u32 val)
 #define DRM_HDCP_2_VRL_LENGTH_SIZE             3
 #define DRM_HDCP_2_DCP_SIG_SIZE                        384
 #define DRM_HDCP_2_NO_OF_DEV_PLUS_RESERVED_SZ  4
-#define DRM_HDCP_2_KSV_COUNT_2_LSBITS(byte)    (((byte) & 0xC) >> 6)
+#define DRM_HDCP_2_KSV_COUNT_2_LSBITS(byte)    (((byte) & 0xC0) >> 6)
 
 struct hdcp_srm_header {
        u8 srm_id;