drm/i915/dp: retry link status read 3 times on failure
authorJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 7 Jul 2011 18:10:57 +0000 (11:10 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 7 Jul 2011 20:38:27 +0000 (13:38 -0700)
commit61da5fab5a9b129cf05b1fe4666c3e45b3103fd4
treed32b39d60881878ae7df4818a9387a884b7fba78
parentfe0d42203cb5616eeff68b14576a0f7e2dd56625
drm/i915/dp: retry link status read 3 times on failure

Especially after a hotplug or power status change, the sink may not
reply immediately to a link status query.  So retry 3 times per the spec
to really make sure nothing is there.

See section 9.1 of the 1.1a DisplayPort spec.

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