]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/dp: consolidate AUX retry code
authorJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 7 Jul 2011 18:11:02 +0000 (11:11 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 7 Jul 2011 20:38:51 +0000 (13:38 -0700)
commitb7748390e2c09602ff680fde0b170ca9645618f5
treecd95a24a6691601a4c9571297e9b8d3459184498
parent6775a07300b86a9c58d105edc4dc78b50a869ff3
drm/i915/dp: consolidate AUX retry code

When checking link status during a hot plug event or detecting sink
presence, we need to retry 3 times per the spec (section 9.1 of the 1.1a
DisplayPort spec).  Consolidate the retry code into a
native_aux_read_retry function for use by get_link_status and _detect.

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