diff options
author | Keith Packard <keithp@keithp.com> | 2011-11-02 13:17:59 -0400 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-11-16 23:26:27 -0500 |
commit | b34f1f0931575bf1e1483472a5202b8247fa9b10 (patch) | |
tree | ff4b910728159eaf932fbaaa13f1cbb76e9724fe /drivers | |
parent | f2e8b18af95358cf5407bf263cba04fc4c379123 (diff) |
drm/i915: Initiate DP link training only on the lanes we'll be using
Limit the link training setting command to the lanes needed for the
current mode. It seems vaguely possible that a monitor will try to
train the other lanes and fail in some way, so this seems like the
safer plan.
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/i915/intel_dp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 7bdf77e79798..8c3819b02a7f 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c | |||
@@ -1564,8 +1564,9 @@ intel_dp_set_link_train(struct intel_dp *intel_dp, | |||
1564 | 1564 | ||
1565 | ret = intel_dp_aux_native_write(intel_dp, | 1565 | ret = intel_dp_aux_native_write(intel_dp, |
1566 | DP_TRAINING_LANE0_SET, | 1566 | DP_TRAINING_LANE0_SET, |
1567 | intel_dp->train_set, 4); | 1567 | intel_dp->train_set, |
1568 | if (ret != 4) | 1568 | intel_dp->lane_count); |
1569 | if (ret != intel_dp->lane_count) | ||
1569 | return false; | 1570 | return false; |
1570 | 1571 | ||
1571 | return true; | 1572 | return true; |