]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/bridge: add drm_bridge_unplug() and drm_bridge_enter/exit()
authorLuca Ceresoli <luca.ceresoli@bootlin.com>
Wed, 12 Nov 2025 16:34:34 +0000 (17:34 +0100)
committerLuca Ceresoli <luca.ceresoli@bootlin.com>
Thu, 11 Dec 2025 10:28:43 +0000 (11:28 +0100)
commitd36137085a4aa2d2f039359a0d67d9e07667f2de
tree6ff06ac80bb01e501bb2e873748cbe1def12ebc8
parenta1542b8ca6edabbb42ec4141e55d0d0710c9b6df
drm/bridge: add drm_bridge_unplug() and drm_bridge_enter/exit()

To allow DRM bridges to be removable, add synchronization functions
allowing to tell when a bridge hardware has been physically unplugged and
to mark a critical section that should not be entered after that.

This is inspired by the drm_dev_unplugged/enter/exit() functions for struct
drm_device.

Suggested-by: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/all/20250106-vigorous-talented-viper-fa49d9@houat/
Reviewed-by: Maxime Ripard <mripard@kernel.org>
Link: https://patch.msgid.link/20251112-drm-bridge-atomic-vs-remove-v3-1-85db717ce094@bootlin.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
drivers/gpu/drm/drm_bridge.c
include/drm/drm_bridge.h