]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: prepare load-detect pipe code for dpms changes
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 12 Aug 2012 17:27:11 +0000 (19:27 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 17 Aug 2012 08:10:01 +0000 (10:10 +0200)
commit65d7f512f5e2590bd1cc6ee4067d4134f4636c41
treeddb4126de9edfb131c266f218b2fffc7623d0dcf
parent37ee83c1442e660e93c21fd40821d8ef7a11d718
drm/i915: prepare load-detect pipe code for dpms changes

A few things need adjustement:
- Change the dpms state by calling the dpms connector function and
  not some crtc helper internal callbacks. Otherwise this will break
  once we switch to our own dpms handling.
- Instead of tracking and restoring intel_crtc->dpms_mode use the
  connector's dpms variable - the former relies on the dpms compuation
  rules used by the crtc helper. And it would break when the encoder
  is cloned and the other output has a different dpms state. But luckily
  no one is crazy enough for that.
- Properly clear the connector -> encoder -> crtc linking, even when
  failing (note that the crtc helper removes the encoder -> crtc link
  in disabled_unused_functions for us).

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c