[v2,0/9] drm/udl: Convert to simple-pipe helpers and clean up
mbox series

Message ID 20191206124713.5748-1-tzimmermann@suse.de
Headers show
Series
  • drm/udl: Convert to simple-pipe helpers and clean up
Related show

Message

Thomas Zimmermann Dec. 6, 2019, 12:47 p.m. UTC
With only a single display pipeline and primary plane, udl is perfect
for simple-pipe helpers. Patches 1 to 4 do the convertion. This enables
atomic modesetting for udl devices.

Patches 5 to 8 clean up handling of color depth and framebuffers. With
universal planes that come with simple pipe, display updates can be
implemented with DRM's damage handlers. The primary plane's formats
array allows to export the correct preferred color depth. The original
value was choosen for maximum compatibility, but did not represent the
device's capability.

Patch 9 removes udl's remaining, unused fb code.

The patchset has been tested by running the fb console, X11 and Weston
on a DisplayLink adapter.

v2:
	* rebased on the recent udl damage-handler patchset
	* moved atomic suspend/resume conversion into separate patch
	* don't call drm_connector_{register,unregister}()

Thomas Zimmermann (9):
  drm/udl: Init connector before encoder and CRTC
  drm/udl: Convert to struct drm_simple_display_pipe
  drm/udl: Switch to atomic suspend/resume helpers
  drm/udl: Inline DPMS code into CRTC enable and disable functions
  drm/udl: Set preferred color depth to 16 bpp
  drm/udl: Convert to drm_atomic_helper_dirtyfb()
  drm/udl: Remove struct udl_device.active_fb_16
  drm/udl: Move udl_handle_damage() into udl_modeset.c
  drm/udl: Remove udl_fb.c

 drivers/gpu/drm/udl/Makefile        |   2 +-
 drivers/gpu/drm/udl/udl_connector.c |  21 +-
 drivers/gpu/drm/udl/udl_drv.c       |  11 +-
 drivers/gpu/drm/udl/udl_drv.h       |  19 +-
 drivers/gpu/drm/udl/udl_encoder.c   |  70 ------
 drivers/gpu/drm/udl/udl_fb.c        | 222 -----------------
 drivers/gpu/drm/udl/udl_main.c      |   3 -
 drivers/gpu/drm/udl/udl_modeset.c   | 363 ++++++++++++++++------------
 8 files changed, 230 insertions(+), 481 deletions(-)
 delete mode 100644 drivers/gpu/drm/udl/udl_encoder.c
 delete mode 100644 drivers/gpu/drm/udl/udl_fb.c

--
2.23.0