drm: writeback: Add client capability for exposing writeback connectors
authorLiviu Dudau <Liviu.Dudau@arm.com>
Wed, 28 Feb 2018 14:11:23 +0000 (14:11 +0000)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Wed, 20 Jun 2018 14:30:20 +0000 (15:30 +0100)
commitd67b6a2065076d763c7df626b8c54f16038ad862
treefb7d98ec56e8a726aa2ea0696c55b6702265729e
parentb13cc8dd588434e2aec781e6d12224e4c408ac18
drm: writeback: Add client capability for exposing writeback connectors

Due to the fact that writeback connectors behave in a special way
in DRM (they always report being disconnected) we might confuse some
userspace. Add a client capability for writeback connectors that will
filter them out for clients that don't understand the capability.

Changelog:
 - only accept the capability if the client has already set the
DRM_CLIENT_CAP_ATOMIC one.

Cc: Sean Paul <seanpaul@chromium.org>
Cc: Brian Starkey <brian.starkey@arm.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Brian Starkey <brian.starkey@arm.com>
Link: https://patchwork.freedesktop.org/patch/229038/
drivers/gpu/drm/drm_ioctl.c
drivers/gpu/drm/drm_mode_config.c
include/drm/drm_file.h
include/uapi/drm/drm.h