diff options
author | 2013-04-03 05:29:06 +0000 | |
---|---|---|
committer | 2013-04-03 05:29:06 +0000 | |
commit | d39b221b576397ff291c41fc5400527fb79d43b3 (patch) | |
tree | 3f80ecdda6ae8120a92b43352c6ca1604438cdd1 | |
parent | do not assume time_t and timeval.tv_sec are the same type (diff) | |
download | wireguard-openbsd-d39b221b576397ff291c41fc5400527fb79d43b3.tar.xz wireguard-openbsd-d39b221b576397ff291c41fc5400527fb79d43b3.zip |
match linux 3.8.5 and backout the 'try to train DP even harder' commit
which introduced a bogus check that could lead to an infinite loop
in some eDP setups.
-rw-r--r-- | sys/dev/pci/drm/i915/intel_dp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/i915/intel_dp.c b/sys/dev/pci/drm/i915/intel_dp.c index 71929c8b2b6..2997dd6e369 100644 --- a/sys/dev/pci/drm/i915/intel_dp.c +++ b/sys/dev/pci/drm/i915/intel_dp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: intel_dp.c,v 1.1 2013/03/18 12:36:52 jsg Exp $ */ +/* $OpenBSD: intel_dp.c,v 1.2 2013/04/03 05:29:06 jsg Exp $ */ /* * Copyright © 2008 Intel Corporation * @@ -2013,7 +2013,7 @@ intel_dp_start_link_train(struct intel_dp *intel_dp) for (i = 0; i < intel_dp->lane_count; i++) if ((intel_dp->train_set[i] & DP_TRAIN_MAX_SWING_REACHED) == 0) break; - if (i == intel_dp->lane_count && voltage_tries == 5) { + if (i == intel_dp->lane_count) { ++loop_tries; if (loop_tries == 5) { DRM_DEBUG_KMS("too many full retries, give up\n"); |