]> git.karo-electronics.de Git - linux-beck.git/commit
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>
Tue, 2 Oct 2012 16:06:07 +0000 (18:06 +0200)
commitcaf9ab24e352102ec9dc6df82c78c3a9082109d6
tree32741ad2158a53078673ed9f038bcb8a9fc494f9
parentedb39244fad2e96ba03ea97a4b2c585c7f2fc7e4
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