Home
last modified time | relevance | path

Searched hist:e126d318002639c979f23764f5d496a78e9bd85e (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/gpu/drm/vc4/
H A Dvc4_dpi.cdiff e126d318002639c979f23764f5d496a78e9bd85e Mon Jul 11 19:38:59 CEST 2022 Maxime Ripard <maxime@cerno.tech> drm/vc4: dpi: Switch to DRM-managed encoder initialization

The current code will call drm_encoder_cleanup() when the device is
unbound. However, by then, there might still be some references held to
that encoder, 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 once the DRM device has been last closed.

Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20220711173939.1132294-30-maxime@cerno.tech