drm: Fix HDCP downstream dev count read
authorRamalingam C <ramalingam.c@intel.com>
Thu, 5 Apr 2018 12:03:22 +0000 (17:33 +0530)
committerSean Paul <seanpaul@chromium.org>
Mon, 16 Apr 2018 16:10:48 +0000 (12:10 -0400)
commitb8e47d87be65aec931846ced9a34a22d2021c311
tree378f21e4957b241b4ba86c4800c2c098e7bce68a
parent8089f9f5a32938ddefb1767b8ee14bb7996e5e2f
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 <ramalingam.c@intel.com>
Fixes: 495eb7f877ab drm: Add some HDCP related #defines
cc: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1522929802-22850-1-git-send-email-ramalingam.c@intel.com
include/drm/drm_hdcp.h