]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: vec: Switch to DRM-managed connector initialization
authorMaxime Ripard <maxime@cerno.tech>
Mon, 11 Jul 2022 17:39:29 +0000 (19:39 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 13 Jul 2022 08:46:12 +0000 (10:46 +0200)
commit50f4b61a8e423d7d13009b175a9cc029ee087271
treea915a22ead24246621ac27c18ff933a2427366a2
parentafd7ad343846783d81f69e5fbcd7138969bbd60d
drm/vc4: vec: Switch to DRM-managed connector initialization

The current code will call drm_connector_unregister() and
drm_connector_cleanup() when the device is unbound. However, by then, there
might still be some references held to that connector, 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>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20220711173939.1132294-60-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_vec.c