Re: [PATCH 19/64] drm/vc4: crtc: Switch to DRM-managed CRTC initialization

2022-06-14 Thread Dave Stevenson
On Fri, 10 Jun 2022 at 10:30, Maxime Ripard wrote: > > The current code will call drm_crtc_cleanup() when the device is > unbound. However, by then, there might still be some references held to > that CRTC, including by the userspace that might still have the DRM > device open. > > Let's switch

[PATCH 19/64] drm/vc4: crtc: Switch to DRM-managed CRTC initialization

2022-06-10 Thread Maxime Ripard
The current code will call drm_crtc_cleanup() when the device is unbound. However, by then, there might still be some references held to that CRTC, including by the userspace that might still have the DRM device open. Let's switch to a DRM-managed initialization to clean up after ourselves only