Commit cf7c5d67 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/disp/dp: don't touch link config after success

I don't know of anything this fixes, but it seems wrong anyway.
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent ba124a41
...@@ -241,7 +241,9 @@ dp_link_train_eq(struct dp_state *dp) ...@@ -241,7 +241,9 @@ dp_link_train_eq(struct dp_state *dp)
dp_set_training_pattern(dp, 2); dp_set_training_pattern(dp, 2);
do { do {
if (dp_link_train_update(dp, dp->pc2, 400)) if ((tries &&
dp_link_train_commit(dp, dp->pc2)) ||
dp_link_train_update(dp, dp->pc2, 400))
break; break;
eq_done = !!(dp->stat[2] & DPCD_LS04_INTERLANE_ALIGN_DONE); eq_done = !!(dp->stat[2] & DPCD_LS04_INTERLANE_ALIGN_DONE);
...@@ -253,9 +255,6 @@ dp_link_train_eq(struct dp_state *dp) ...@@ -253,9 +255,6 @@ dp_link_train_eq(struct dp_state *dp)
!(lane & DPCD_LS02_LANE0_SYMBOL_LOCKED)) !(lane & DPCD_LS02_LANE0_SYMBOL_LOCKED))
eq_done = false; eq_done = false;
} }
if (dp_link_train_commit(dp, dp->pc2))
break;
} while (!eq_done && cr_done && ++tries <= 5); } while (!eq_done && cr_done && ++tries <= 5);
return eq_done ? 0 : -1; return eq_done ? 0 : -1;
......
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