msm: mdss: dp: fix wrong parsing of sink count

Current Display Port driver is incorrectly parsing sink count
register (0x200) of DPCD. Made changes to parse it correctly
as per DP specification.

Change-Id: Ic858485f19f226f7b2d84f74c97170db8bebf822
Signed-off-by: Narender Ankam <nankam@codeaurora.org>
This commit is contained in:
Narender Ankam 2017-10-04 18:27:19 +05:30 committed by Gerrit - the friendly Code Review server
parent c3b8576cf9
commit e050b3a0e3

View file

@ -1558,7 +1558,7 @@ static void dp_sink_parse_sink_count(struct mdss_dp_drv_pdata *ep)
data = *bp++;
/* BIT 7, BIT 5:0 */
ep->sink_count.count = (data & BIT(7)) << 6 | (data & 0x63);
ep->sink_count.count = (data & BIT(7)) >> 1 | (data & 0x3F);
/* BIT 6*/
ep->sink_count.cp_ready = data & BIT(6);