]> git.baikalelectronics.ru Git - kernel.git/commit
drm/atomic-helper: add connector->dpms() implementation
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 22 Jan 2015 17:53:05 +0000 (18:53 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 27 Jan 2015 09:02:29 +0000 (10:02 +0100)
commit82d26ac2560e2e5ad106c0e81fdb64de03009131
tree1a207940466624b213d89e7a9902b1985036c6ba
parentc34e017f7b9b9ebe3e607e160abe4396b2403162
drm/atomic-helper: add connector->dpms() implementation

This builds on top of the crtc->active infrastructure to implement
legacy DPMS. My choice of semantics is somewhat arbitrary, but the
entire pipe is enabled as along as one output is still enabled.

Of course it also clamps everything that's not ON to OFF.

v2: Fix spelling in one comment.

v3: Don't do an async commit (Thierry)

v4: Dan Carpenter noticed missing error case handling.

Cc: Thierry Reding <thierry.reding@gmail.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Tested-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
drivers/gpu/drm/drm_atomic_helper.c
include/drm/drm_atomic_helper.h