Skip to content

Commit 169cc4c

Browse files
peda-rAndrzej Hajda
authored andcommitted
drm: bridge: document bridge attach/detach imbalance
Since commit 4a878c0 ("drm: bridge: Detach bridge from encoder at encoder cleanup time"), it is generally no longer correct to detach bridges from encoders manually. Document that. Signed-off-by: Peter Rosin <peda@axentia.se> Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180806061910.29914-3-peda@axentia.se
1 parent eb1d23d commit 169cc4c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/gpu/drm/drm_bridge.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ EXPORT_SYMBOL(drm_bridge_remove);
104104
* If non-NULL the previous bridge must be already attached by a call to this
105105
* function.
106106
*
107+
* Note that bridges attached to encoders are auto-detached during encoder
108+
* cleanup in drm_encoder_cleanup(), so drm_bridge_attach() should generally
109+
* *not* be balanced with a drm_bridge_detach() in driver code.
110+
*
107111
* RETURNS:
108112
* Zero on success, error code on failure
109113
*/

0 commit comments

Comments
 (0)