drm: xlnx: zynqmp_dpsub: Decouple DRM device from zynqmp_dpsub
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 6 Aug 2021 11:29:52 +0000 (14:29 +0300)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 19 Oct 2022 13:55:39 +0000 (16:55 +0300)
commitd189835fffed7fed4aec15a41eaa27190ad4e04d
tree30fd1a670f39351186c6ed239fe92898177e5c09
parent074ef0ce9f8300697e6dc1f423124cc2e73d1eb5
drm: xlnx: zynqmp_dpsub: Decouple DRM device from zynqmp_dpsub

To complete the decoupling of the DRM device from the zynqmp_dpsub,
group all DRM-related structures in a zynqmp_dpsub_drm structure and
allocate it separately from the zynqmp_dpsub. The DRM managed allocation
of the drm_device now doesn't cover the zynqmp_dpsub anymore, so we need
to register a cleanup action to release the zynqmp_dpsub when the
drm_device is released.

The will allow usage of the DisplayPort encoder as a standalone bridge,
without registering a DRM device in this driver.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/gpu/drm/xlnx/zynqmp_dpsub.c
drivers/gpu/drm/xlnx/zynqmp_dpsub.h
drivers/gpu/drm/xlnx/zynqmp_kms.c
drivers/gpu/drm/xlnx/zynqmp_kms.h