Re: [PATCH 4/4] drm/bridge: add warning for bridges attached without being added

From: Raphaël Gallais-Pou
Date: Sat Oct 18 2025 - 08:47:03 EST




Le 03/10/2025 à 10:59, Luca Ceresoli a écrit :
DRM bridges must be added before they are attached. Add a warning to catch
violations.

The warning is based on the bridge not being part of any list, so it will
trigger if the bridge is being attached without ever having been added.

It won't catch cases of bridges attached after having been added and then
removed, because in that case the bridge will be in
bridge_lingering_list. However such a case is both more demanding to detect
and less likely to happen, so it can be left unchecked, at least for now.

Link: https://lore.kernel.org/all/20250709-sophisticated-loon-of-rain-6ccdd8@houat/
Signed-off-by: Luca Ceresoli <luca.ceresoli@xxxxxxxxxxx>
---

Reviewed-by: Raphael Gallais-Pou <rgallaispou@xxxxxxxxx>

Best regards,
Raphaël>