]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: check connector hw/sw state
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 2 Jul 2012 19:54:27 +0000 (21:54 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 6 Sep 2012 05:59:42 +0000 (07:59 +0200)
commit25137a3a595f7e2545ba5a8ec6a3e45df3488bae
tree48ef24cb35243dbb69c2d10fef3eb843f52bc2b3
parent464edc281c3319d06c635f5c1979807393ec7fc3
drm/i915: check connector hw/sw state

Atm we can only check the connector state after a dpms call - while
doing modeset with the copy&pasted crtc helper code things are too
ill-defined for proper checking. But the idea is very much to call
this check from the modeset code, too.

v2: Fix dpms check and don't presume that if the hw isn't on that it
must not be linked up with an encoder (it could simply be switched off
with the dpms state).

Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_crt.c
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_dvo.c
drivers/gpu/drm/i915/intel_sdvo.c