From nobody Thu Oct 2 19:24:03 2025 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5821A324B3B for ; Fri, 12 Sep 2025 17:04:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.85.4 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757696660; cv=none; b=BB9uuhMFGX00sQly/LWmoC6PCeeRj3ibdAu2O+aD8zsdphfQaoH0rlcDnh4xyiwUqKfNeMK+SZoQ4nRAsgQyP1+febESzIQqV4Gqza0Pdlf/fwqzYtTmPB3SA6TSe2mnGAgbiQDgnavF0iHdV7Vf5l4MNA4idq0Awpf7zGxAfcA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757696660; c=relaxed/simple; bh=NTVQLmxkeT6zaBWqWrh3MzMF5kVQNlli4aOM22XOisQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=sEJt1GVeOZ04MsIkqPJX+G2q94o0Kp5RQczN/7njOIMqfz4sKq1r/jpykbUMUBOqt7ejrmkujoEHFK1+X+x6W7CozMA+4a3oI/VmAfprU4VIOto0YHLDtUROknJtPde423ejrypnH9240s7xml8VAJnFI00DsjeFrmG4+2jIn5s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=K+lA6hZo; arc=none smtp.client-ip=185.246.85.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="K+lA6hZo" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id BD0644E40C77; Fri, 12 Sep 2025 17:04:16 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 9498D60638; Fri, 12 Sep 2025 17:04:16 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id E88AE102F295C; Fri, 12 Sep 2025 19:04:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1757696655; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=FEZ1jJCZv48VMdKDRQ5LuktGboUwlVW2TP9ATDwpDto=; b=K+lA6hZomSNp04H6VpspZHYqW2Do8s+o3GORlSlA20Ybs6R73nI+/+kren6RYxgXB9qp1R mw5/RxIt+tvg4uy4N5M3nTYRoeF8neTRNTkBdZQ4AVTEH+5YQSx1fiSPKAyCJ5hQovoD4o tNgzUoezVM6edlF0rf5aWw9LLUhWRJl4ecs6uMYizXvePc/9cH6SFKqbtR1LRUjBvRYnID cPR5er+66zR0eupKHcUK6q+V1eZtsHfZivsN19NRaHoQULzLeEsFFIR8ffIV3Nk/2QBVHi sjgkeg8w8TywstN66mdkcPxUV0TZ7saV3pwZbcC5WuZLiVxQ8jdovv5xaJVmOA== From: Luca Ceresoli Date: Fri, 12 Sep 2025 19:03:43 +0200 Subject: [PATCH v8 3/3] drm/bridge: adapt drm_bridge_add/remove() docs, mention the lingering list Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250912-drm-bridge-debugfs-removed-v8-3-5c33d87ccb55@bootlin.com> References: <20250912-drm-bridge-debugfs-removed-v8-0-5c33d87ccb55@bootlin.com> In-Reply-To: <20250912-drm-bridge-debugfs-removed-v8-0-5c33d87ccb55@bootlin.com> To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Cc: Hui Pu , Thomas Petazzoni , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Luca Ceresoli , Dmitry Baryshkov X-Mailer: b4 0.14.2 X-Last-TLS-Session-Version: TLSv1.3 The role of drm_bridge_add/remove() is more complex now after having added the lingering list. Update the kdoc accordingly. Also stop mentioning the global list(s) in the first line of the docs: the most important thing to mention here is that bridges are registered and deregistered, lists are just the type of container used to implement such (de)registration. Signed-off-by: Luca Ceresoli --- Changes in v8: - extracted to an ad-hoc patch from the v7 patch "drm/bridge: add list of removed refcounted bridges" --- drivers/gpu/drm/drm_bridge.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_bridge.c b/drivers/gpu/drm/drm_bridge.c index fccc42017fd4df6ecfb596325df2dc4d17566f39..9a3db8f5adc8a4d1265679335d7= b05d0705194b7 100644 --- a/drivers/gpu/drm/drm_bridge.c +++ b/drivers/gpu/drm/drm_bridge.c @@ -296,10 +296,13 @@ void *__devm_drm_bridge_alloc(struct device *dev, siz= e_t size, size_t offset, EXPORT_SYMBOL(__devm_drm_bridge_alloc); =20 /** - * drm_bridge_add - add the given bridge to the global bridge list + * drm_bridge_add - register a bridge * * @bridge: bridge control structure * + * Add the given bridge to the global list of bridges, where they can be + * found by users via of_drm_find_bridge(). + * * The bridge to be added must have been allocated by * devm_drm_bridge_alloc(). */ @@ -360,9 +363,14 @@ int devm_drm_bridge_add(struct device *dev, struct drm= _bridge *bridge) EXPORT_SYMBOL(devm_drm_bridge_add); =20 /** - * drm_bridge_remove - remove the given bridge from the global bridge list + * drm_bridge_remove - unregister a bridge * * @bridge: bridge control structure + * + * Remove the given bridge from the global list of registered bridges, so + * it won't be found by users via of_drm_find_bridge(), and add it to the + * lingering bridge list, to keep track of it until its allocated memory is + * eventually freed. */ void drm_bridge_remove(struct drm_bridge *bridge) { --=20 2.51.0