]> git.karo-electronics.de Git - linux-beck.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)
commit24e804ba9731bf4b05bc17a6702d802e76b3bbc4
treeb85af400b0ec4f7fa0b6d16f85ce4c5010127424
parent84bb65bded92028a6c803fef332586fedbe092b2
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