drm/i915: Use dp_detect_common in hotplug helper function
authorKeith Packard <keithp@keithp.com>
Tue, 26 Jul 2011 02:50:10 +0000 (19:50 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 28 Jul 2011 22:47:20 +0000 (15:47 -0700)
commit92fd8fd13b7570f6a8ba519c4e8ec98f10a86ce9
tree26a26be50952a5ba7c40d2a770f914f93d597cde
parent40ee3381dd1010432acc13e907329029096c5bfc
drm/i915: Use dp_detect_common in hotplug helper function

This uses the common dpcd reading routine, i915_dp_detect_common,
instead of open-coding a call to intel_dp_aux_native_read. Besides
reducing duplicated code, this also gains the read retries which
may be necessary when a cable is first plugged back in and the link
needs to be retrained.

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