Commit 8f5040e4 authored by Marta Lofstedt's avatar Marta Lofstedt Committed by Daniel Vetter

drm: allow changing DPMS mode

The drm_atomic_helper_connector_dpms
will set the connector back the old DPMS state
before returning. This makes it impossible to change
DPMS state of the connector.

Fixes: 0853695c
v2: edit of commit message
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Eric Engestrom <eric.engestrom@imgtec.com>
Cc: Sean Paul <seanpaul@chromium.org>
Cc: dri-devel@lists.freedesktop.org
Cc: <drm-intel-fixes@lists.freedesktop.org>
Signed-off-by: default avatarMarta Lofstedt <marta.lofstedt@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161205120408.13056-1-marta.lofstedt@intel.com
parent 16571a8a
...@@ -2885,7 +2885,7 @@ int drm_atomic_helper_connector_dpms(struct drm_connector *connector, ...@@ -2885,7 +2885,7 @@ int drm_atomic_helper_connector_dpms(struct drm_connector *connector,
fail: fail:
if (ret == -EDEADLK) if (ret == -EDEADLK)
goto backoff; goto backoff;
if (ret != 0)
connector->dpms = old_mode; connector->dpms = old_mode;
drm_atomic_state_put(state); drm_atomic_state_put(state);
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment