]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite718fb7fb0b02f693512c7ccc89dd64b3a6123bd
tree6a666c034cd284b4c176f876a59411825f38cef7
parentd79f564d721282a5336843c4e5520650334f4a63
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