]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/dp: try to read receiver capabilities 3 times when detecting
authorJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 7 Jul 2011 18:11:00 +0000 (11:11 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 7 Jul 2011 20:38:44 +0000 (13:38 -0700)
commit5616e95d79a4e45ee3bc96f7b857fe65757162ae
treed4bdec27956e40aaa9209da438cea6ae3ef8f7f0
parent86addb121867314da49e45f11f88ba48955b95b6
drm/i915/dp: try to read receiver capabilities 3 times when detecting

If ->detect is called too soon after a hot plug event, the sink may not
be ready yet.  So try up to 3 times with 1ms sleeps in between tries to
get the data (spec dictates that receivers must be ready to respond within
1ms and that sources should try 3 times).

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