]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Convert connector checking to atomic, v3.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 6 Aug 2015 11:49:22 +0000 (13:49 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 14 Aug 2015 15:50:31 +0000 (17:50 +0200)
commit2edc8036a5f8fc36599b9883f452ecbd47afe6ea
tree54c9a7e34dbe67212d738a4078c84a2514c97497
parentc3e09c7970a2d23aa1fcfd1feb74912fa498d0ad
drm/i915: Convert connector checking to atomic, v3.

Right now dpms callbacks can still fiddle with the connector state,
but it can only turn connectors off.

This is remediated by only checking crtc->state->active when the
connector is active, and ignore crtc->state->active when the
connector is off.

connectors_active is no longer checked, and will be removed later
in this series together with dpms.

Another check for !encoder->crtc is performed by check_encoder_state
too, so it can be removed.

Changes since v1:
- Add commit message.
- rename state to old_state.
- Move deletion of mst_port check to mst patch.
Changes since v2:
- Fix a null pointer dereference on MST now hw readout is fixed.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Ander Conselvan de Oliveira <conselvan2@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c