Commit 3ca03cac authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/kms/nv50: avoid touching DP_MSTM_CTRL if !DP_MST_CAP

Fixes certain displays not being detected due to DPAUX errors.
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent b27add13
...@@ -3343,12 +3343,15 @@ nv50_mstm_detect(struct nv50_mstm *mstm, u8 dpcd[8], int allow) ...@@ -3343,12 +3343,15 @@ nv50_mstm_detect(struct nv50_mstm *mstm, u8 dpcd[8], int allow)
if (!mstm) if (!mstm)
return 0; return 0;
if (dpcd[0] >= 0x12 && allow) { if (dpcd[0] >= 0x12) {
ret = drm_dp_dpcd_readb(mstm->mgr.aux, DP_MSTM_CAP, &dpcd[1]); ret = drm_dp_dpcd_readb(mstm->mgr.aux, DP_MSTM_CAP, &dpcd[1]);
if (ret < 0) if (ret < 0)
return ret; return ret;
state = dpcd[1] & DP_MST_CAP; if (!(dpcd[1] & DP_MST_CAP))
dpcd[0] = 0x11;
else
state = allow;
} }
ret = nv50_mstm_enable(mstm, dpcd[0], state); ret = nv50_mstm_enable(mstm, dpcd[0], state);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment