From nobody Tue Feb 10 15:45:34 2026 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (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 2D6EB39526A for ; Fri, 16 Jan 2026 17:33:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.84.56 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768584803; cv=none; b=MrdNif07wXIaQ3n4fRaPynhU8yC9O47StimN6NQOP4yUPpyQiWr50wJ3em7DQ2b04tLbo9lKTZY8+QZnF4R1Ivc+K3H9KMj55ZYWsCuWinTGunI0sQZ0BLlcnVA0exOforQswvEkG5nflxCzRmHnpMi4sJWNQ5CHHMc42M8MDdk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768584803; c=relaxed/simple; bh=BHMI5cZX0CNLkjeQo46La9pw6SwOIPMWy1ez9c7bmQM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Hca2xq5+y3ecETs18fCXUW8KDdp00hLrs+sMw1GyMrYd/Gyf4F8RK1Ewhu6aIUzmlPSy7CVaaQMQYQ9W+9ZC4kbtIDP5MpOJrXoF6+gBJqupLwoJs3EgoypIfOychekxZ8RpyUAu3CQ8Lfdqj8wOwFz1h18FDVaMkNEQ6znDVFQ= 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=00DqBXZ6; arc=none smtp.client-ip=185.246.84.56 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="00DqBXZ6" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 516501A28AA; Fri, 16 Jan 2026 17:33:19 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 255C5606F9; Fri, 16 Jan 2026 17:33:19 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 805F510B686BE; Fri, 16 Jan 2026 18:33:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1768584797; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=XWvPrNM51DRgWiT+4jttnUuVuHPq0djc3tV/ZM+m9o0=; b=00DqBXZ6UzRS/aLVK8QYcupDhaJq22/amgLzGzGLat9m1McDxVvnZWaWYcempf+fR2a7HU 1R6db19pMLi01HSus6kmbRMWs/XSQw/2qo/zarYhZA8kvD4EpezBG7BqINkxFFuFcwPPXy DeEjCoebOCKMgVHlvy0yDC6g/7xQvtlgWRG4reDyXaMNy75RXZDajrLlr2XRWEswvdEz7B SigPnEoirPQSC/Q9geO34Zjs9IucigYxXvu8XDoh98A6jN+M5TdwtpeROD0zvcOXl2rEYX QgfolNwhVT1pd/X+VHTjgGr0ADW4FhlpydZ4OBkMjTW+Kw4FNp+Hlz9ZFhP3Gw== From: Luca Ceresoli Date: Fri, 16 Jan 2026 18:32:37 +0100 Subject: [PATCH 2/6] drm/kmb/dsi: convert to of_drm_find_and_get_bridge() 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: <20260116-drm-bridge-alloc-getput-drm_of_find_bridge-4-v1-2-e34b38f50d27@bootlin.com> References: <20260116-drm-bridge-alloc-getput-drm_of_find_bridge-4-v1-0-e34b38f50d27@bootlin.com> In-Reply-To: <20260116-drm-bridge-alloc-getput-drm_of_find_bridge-4-v1-0-e34b38f50d27@bootlin.com> To: Biju Das , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Anitha Chrisanthus , Edmund Dea , Linus Walleij , Laurent Pinchart , Tomi Valkeinen , Kieran Bingham , Geert Uytterhoeven , Magnus Damm , Tomi Valkeinen Cc: Hui Pu , Ian Ray , Thomas Petazzoni , dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Ceresoli X-Mailer: b4 0.14.3 X-Last-TLS-Session-Version: TLSv1.3 of_drm_find_bridge() is deprecated. Move to its replacement of_drm_find_and_get_bridge() which gets a bridge reference. This driver has global variables for the DSI host and DSI device, and code to allocate them on probe but no code to free them when on remove. So it does not at all support removal, and not even multiple instances. For this reason putting the reference would be pointless here. Signed-off-by: Luca Ceresoli --- drivers/gpu/drm/kmb/kmb_dsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/kmb/kmb_dsi.c b/drivers/gpu/drm/kmb/kmb_dsi.c index faf38ca9e44c..8c8908c3bf32 100644 --- a/drivers/gpu/drm/kmb/kmb_dsi.c +++ b/drivers/gpu/drm/kmb/kmb_dsi.c @@ -251,7 +251,7 @@ int kmb_dsi_host_bridge_init(struct device *dev) return -EINVAL; } /* Locate drm bridge from the hdmi encoder DT node */ - adv_bridge =3D of_drm_find_bridge(encoder_node); + adv_bridge =3D of_drm_find_and_get_bridge(encoder_node); of_node_put(dsi_out); of_node_put(encoder_node); if (!adv_bridge) { --=20 2.52.0