]> git.karo-electronics.de Git - linux-beck.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)
commit0a91ca29215a41760cca03999498959d0e05d9b3
tree48ef24cb35243dbb69c2d10fef3eb843f52bc2b3
parent24929352481f085c5f85d4d4cbc919ddf106d381
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