From mboxrd@z Thu Jan 1 00:00:00 1970 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 9591A3BED32; Thu, 1 Oct 2026 08:31:50 +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=1790843512; cv=none; b=g3l2HqeJLJh+OE/xm71iYXmV8NymAJQKtIrjA9vnPO4MB7OHjsZW6ASVsi0fTRj+Ocr1XyUoKjJb84wCBwTH5W+ujfuX/dcflxgyBSAB9m+7gCy0bZ3fgbc6OlM33XsNak2oMbLGMSmniv/DJ9WWNDduiz7wTtyQOdfo0sgtQp4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790843512; c=relaxed/simple; bh=jpbVVx9QoqKKtBn74779r5rJeMJp9L3EDVWrB/wBfF8=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:Cc:To:From: References:In-Reply-To; b=IyLPEymcsZa5PLJwp/LOUIb75pPQaskEM54iPF4+Jf39540keg+P8BJ7m010+G4UwKDNyxnezyFPC/D7a58fKLhjkoNiridWZAhMiNoIyZYcMWl9u3CUVMUrcIsEyvzM9NdSFshp5FUdSxbNT0B7SwF+xIWAdDYbG54ifpoTTEQ= 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=sagW3Htt; 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="sagW3Htt" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id B50A01A109B; Thu, 1 Oct 2026 08:31:48 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 81B8260341; Thu, 1 Oct 2026 08:31:48 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 5F0F4103290C1; Thu, 1 Oct 2026 10:31:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1790843506; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=RiIDTpci/0UJ3NCrt48cxrs7UcRvkm9TcGYKchYj198=; b=sagW3Htt5YQwsJod0ppAZZLVo/HIbh2Wh1p3vMtfEqB4XzuMaoD5AyK9Xuqhjsglex+M6K d6GboCZyFgqJlMZx/6YAQ/YGbVbRnzF/QRgBYMIxDkxucLFdgQTFK7kiSTyH2OcmiZydOt cccMEa+DX6efu2rnGF1NSYK75PUxwZe91djO9sMyVvwWqi1k3ZSaKvhvSSfS4AyzCGrV8Z lzPuYHAJ/x6OL2dxv2lcoAoKWQvoySk7ekWG2AyInjDdfcaHesnl6/y18kaAcliFte1w5R U/SEZR0ZuELcN7FNSCQ3LXdMRk/6JwXjyWiJuEMWoEEcGGJtD4zg1voBIxS/MA== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 01 Oct 2026 10:31:37 +0200 Message-Id: Subject: Re: [PATCH v2 5/7] drm/vc4: dpi: stop using deprecated drmm_of_get_bridge() Cc: "Arnd Bergmann" , "Doug Anderson" , "Hui Pu" , "Ian Ray" , "Thomas Petazzoni" , , , , , To: "Paul Cercueil" , "Luca Ceresoli" , "Maarten Lankhorst" , "Maxime Ripard" , "Thomas Zimmermann" , "David Airlie" , "Simona Vetter" , "Frank Li" , "Sascha Hauer" , "Pengutronix Kernel Team" , "Fabio Estevam" , "Icenowy Zheng" , "Andrzej Hajda" , "Neil Armstrong" , "Robert Foss" , "Laurent Pinchart" , "Jonas Karlman" , "Jernej Skrabec" , "Dave Stevenson" , =?utf-8?q?Ma=C3=ADra_Canal?= , "Raspberry Pi Kernel Maintenance" , "Geert Uytterhoeven" From: "Luca Ceresoli" X-Mailer: aerc 0.22.0 References: <20260929-drm-fix-of_get_bridge-build-regression-v2-0-6da431d8f180@bootlin.com> <20260929-drm-fix-of_get_bridge-build-regression-v2-5-6da431d8f180@bootlin.com> In-Reply-To: X-Last-TLS-Session-Version: TLSv1.3 Hi Paul, On Thu Oct 1, 2026 at 10:22 AM CEST, Paul Cercueil wrote: >> -/* Sets up the next link in the display chain, whether it's a panel or >> - * a bridge. >> - */ > > The first part of the comment is not wrong, I would keep "Sets up the nex= t link > in the display chain". OK, I will do it in v3. This patch is not a fix, so not urgent. >> =C2=A0static int vc4_dpi_init_bridge(struct vc4_dpi *dpi) >> =C2=A0{ >> - struct drm_device *drm =3D dpi->encoder.base.dev; >> =C2=A0 struct device *dev =3D &dpi->pdev->dev; >> - struct drm_bridge *bridge; >> >> - bridge =3D drmm_of_get_bridge(drm, dev->of_node, 0, 0); >> + struct drm_bridge *bridge __free(drm_bridge_put) =3D >> + of_drm_get_bridge_by_endpoint(dev->of_node, 0, 0); >> =C2=A0 if (IS_ERR(bridge)) { >> =C2=A0 /* If nothing was connected in the DT, that's not an >> =C2=A0 * error. > > It could make sense to go the extra mile and just move that code back int= o the > caller function, I don't see much benefit in having it in a static functi= on > here. Why not. If no one objects I'll do it as an additional patch in v3. Cheers, Luca -- Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com