drm/i915: make DP training try a little harder
commit7511217f502665d704985c4face6bea882648ffc
authorJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 5 Jan 2011 22:45:24 +0000 (5 14:45 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 24 Feb 2011 22:54:26 +0000 (24 14:54 -0800)
treee4fa8ad3f476815c854a9ac5ce65cc1c4831e60e
parentc2fa42bddd9caa19f0e3fa336da3899f1403b2bc
drm/i915: make DP training try a little harder

commit 37f809755845cc3e18e8216c04525bdb885fa13b upstream.

When trying to do channel equalization, we need to make sure we still
have clock recovery on all lanes while training.  We also need to try
clock recovery again if we lose the clock or if channel eq fails 5
times.  We'll try clock recovery up to 5 more times before giving up
entirely.

Gets suspend/resume working on my Vaio again and brings us back into
compliance with the DP training sequence spec.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/i915/intel_dp.c