drm/i915/dp: Be smarter about connection sense for branch devices
authorAdam Jackson <ajax@redhat.com>
Tue, 18 Sep 2012 14:58:50 +0000 (10:58 -0400)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 26 Sep 2012 12:22:29 +0000 (14:22 +0200)
commit07d3dc18396790d9d394f4f0717a91b3a845c758
treebbeef79ea8ea2d0523e1d6cb09f367b32e18c666
parentb091cd928dfa81e8c28b9707899201358b4e50b5
drm/i915/dp: Be smarter about connection sense for branch devices

If there's no downstream device, DPCD success is good enough.  If
there's a hotplug-capable downstream device, count the number of
connected sinks in DP_SINK_STATUS and return success if it's non-zero.
Otherwise, probe DDC and report appropriately.

v2: Check DP_SINK_STATUS instead of something unrelated to sink status.

Tested-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c