Skip to content

Commit b8e47d8

Browse files
ramalingamcatseanpaul
authored andcommitted
drm: Fix HDCP downstream dev count read
In both HDMI and DP, device count is represented by 6:0 bits of a register(BInfo/Bstatus) So macro for bitmasking the device_count is fixed(0x3F->0x7F). v3: Retained the Rb-ed. v4: %s/drm\/i915/drm [rodrigo] v5: Added "Fixes:" and HDCP keyword in subject [Rodrigo, Sean Paul] Signed-off-by: Ramalingam C <[email protected]> Fixes: 495eb7f drm: Add some HDCP related #defines cc: Sean Paul <[email protected]> Reviewed-by: Sean Paul <[email protected]> Signed-off-by: Sean Paul <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 8089f9f commit b8e47d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/drm/drm_hdcp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#define DRM_HDCP_RI_LEN 2
2020
#define DRM_HDCP_V_PRIME_PART_LEN 4
2121
#define DRM_HDCP_V_PRIME_NUM_PARTS 5
22-
#define DRM_HDCP_NUM_DOWNSTREAM(x) (x & 0x3f)
22+
#define DRM_HDCP_NUM_DOWNSTREAM(x) (x & 0x7f)
2323
#define DRM_HDCP_MAX_CASCADE_EXCEEDED(x) (x & BIT(3))
2424
#define DRM_HDCP_MAX_DEVICE_EXCEEDED(x) (x & BIT(7))
2525

0 commit comments

Comments
 (0)