OSDN Git Service

drm/i915: handle G45/GM45 pulse detection connected state.
authorDave Airlie <airlied@redhat.com>
Mon, 1 Sep 2014 06:58:12 +0000 (16:58 +1000)
committerJani Nikula <jani.nikula@intel.com>
Mon, 1 Sep 2014 13:47:01 +0000 (16:47 +0300)
commit2a592bec50994597716c633191ed6bf7af14defc
treee5525473bcb020fecfefa08feeda2ecd0ba37470
parentbbe1c2740d3a25aa1dbe5d842d2ff09cddcdde0a
drm/i915: handle G45/GM45 pulse detection connected state.

In the HPD pulse handler we check for long pulses if the port is actually
connected, however we do that for IBX, but we use the pulse handling code on
GM45 systems as well, so we need to use a diffent check.

This patch refactors the digital port connected check out of the g4x detection
path and reuses it in the hpd pulse path.

Fixes: http://lkml.kernel.org/r/1409382202.5141.36.camel@marge.simpson.net
Reported-by: Mike Galbraith <umgwanakikbuti@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_dp.c