]> git.baikalelectronics.ru Git - kernel.git/commit
drm/atomic-helper: Add an atomice best_encoder callback
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 3 Aug 2015 15:24:08 +0000 (17:24 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 4 Aug 2015 09:09:25 +0000 (11:09 +0200)
commitf5168313f0414d5dab7b44eb761d11f2b66be815
tree51f16cdc7a3111f3142c7c0a32456d3697d10993
parenta5b64a5377e446131b64219824edf0ab30c2e5e4
drm/atomic-helper: Add an atomice best_encoder callback

With legacy helpers all the routing was already set up when calling
best_encoder and so could be inspected. But with atomic it's staged,
hence we need a new atomic compliant callback for drivers which need
to inspect the requested state and can't just decided the best encoder
statically.

This is needed to fix up i915 dp mst where we need to pick the right
encoder depending upon the requested CRTC for the connector.

v2: Don't forget to amend the kerneldoc

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Theodore Ts'o <tytso@mit.edu>
Acked-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Ander Conselvan de Oliveira <conselvan2@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
drivers/gpu/drm/drm_atomic_helper.c
include/drm/drm_crtc_helper.h