]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: rip out intel_dp->dpms_mode
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 26 Jul 2012 17:25:46 +0000 (19:25 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 6 Sep 2012 06:00:05 +0000 (08:00 +0200)
commit9a30d8e112af4b143255459548b0dfc9f383ea6d
treeb85af400b0ec4f7fa0b6d16f85ce4c5010127424
parented6aaa4e61a5d1e839a1f6eea5cb4f6fde233249
drm/i915: rip out intel_dp->dpms_mode

We now track the connector state in encoder->connectors_active, and
because the DP output can't be cloned, that is sufficient to track the
link state. Hence use this instead of adding yet another modeset state
variable with dubious semantics at driver load and resume time.

Also, connectors_active should only ever be set when the encoder is
linked to a crtc, hence convert that crtc test into a WARN.

v2: Rebase on top of struct intel_dp moving.

v3: The rebase accidentally killed the newly-introduced intel_dp->port
Noticed by Paulo Zanoni.

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