drm/i915: Try harder during dp pattern 1 link training
authorKeith Packard <keithp@keithp.com>
Wed, 2 Nov 2011 03:00:06 +0000 (20:00 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 17 Nov 2011 04:26:26 +0000 (20:26 -0800)
commitcdb0e95bf571dccc1f75fef9bdad21b167ef0b37
treea4c49806d9a39cb2f3c1d9dd5eda36e5b380dc5e
parent21264c638b4f9179655a39436d0340bd0d4ab1de
drm/i915: Try harder during dp pattern 1 link training

Instead of going through the sequence just once, run through the whole
set up to 5 times to see if something can work. This isn't part of the
DP spec, but the BIOS seems to do it, and given that link training
failure is so bad, it seems reasonable to follow suit.

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/gpu/drm/i915/intel_dp.c