OSDN Git Service

drm/udl: Convert to struct drm_simple_display_pipe
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 10 Dec 2019 08:48:58 +0000 (09:48 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 11 Dec 2019 16:02:16 +0000 (17:02 +0100)
commit9fda81e00e060e3ab9a56d77552d2d5e296f1007
tree6a666c034cd284b4c176f876a59411825f38cef7
parente829cf0b30b4b55c9fa212cef1e116df91e0d80b
drm/udl: Convert to struct drm_simple_display_pipe

Udl has a single display pipeline with a primary plane; perfect for
simple-pipe helpers. Convert it over. The old encoder and CRTC code
becomes unused and obsolete.

Exported formats for the primary plane are RGB565 and XRGB8888, with
the latter being emulated. The 16-bit format is the default and what
is used when communicating with the device.

This patch enables atomic modesetting for udl devices.

v3:
* remove unused field crtc from struct udl_device
* set crtc_state->no_vblank at beginning of enable()
v2:
* move suspend/resume changes into separate patch
* remove non-atomic code

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191210084905.5570-3-tzimmermann@suse.de
drivers/gpu/drm/udl/Makefile
drivers/gpu/drm/udl/udl_connector.c
drivers/gpu/drm/udl/udl_drv.c
drivers/gpu/drm/udl/udl_drv.h
drivers/gpu/drm/udl/udl_encoder.c [deleted file]
drivers/gpu/drm/udl/udl_modeset.c