From mboxrd@z Thu Jan 1 00:00:00 1970 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 BE6C950AC0E; Wed, 16 Sep 2026 13:46:48 +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=1789566416; cv=none; b=lLUTL01xd7jkSfPCDVR5PYMhGwQiPJEyPFdtzqNQTL0pKlMuUMnDfGN1DM5KA0FH64MUKIkarA0BeC9nKZLEEX/GZ257G+BnYCuZondp9oDZ4mLzzNi0XTwygIDwuqXUf+JijeTT/usHmHziNhZCaK3IT2NtFyz86Oq2iXDfCIc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789566416; c=relaxed/simple; bh=wc7iPWmRJoJiXM8gBa/wgxxArAKokd+J52BFZBvvvDg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=jW4aknlZKZnHddz2VxOpM3H/yNBudqBB1YTaDrJvPsRS0QrF8qNk2tu2VylP8Y4f3SJvqB7Tzq8LM5bQwIgCkT1FNm7q6Hej00A6dPk6rhg2sxao8Altnsz/kkaO2mi5Gcp6oNas46+F9QinJ3EaijpgYzo2iFdYCLHcYGFM2JQ= 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=CD66GLPb; 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="CD66GLPb" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id EFD004E40736; Wed, 16 Sep 2026 13:46:44 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id B325960337; Wed, 16 Sep 2026 13:46:44 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 4434511C7B040; Wed, 16 Sep 2026 15:46:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1789566396; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=7w1uPyaYjbV/AzoYagowX8aCeRR8/9jNsyB2/i8ji+c=; b=CD66GLPbez6qUMGecDMwJly8JKoywBC1WJmMkpDzjFZPuWVq6yeMis4y+VCYVecsY3WIYm vsTHwQ61/noyLOFbuH2W6zMSQuXb2qLUvPlIhnVT50bz0GbCHWdWqHX/9Unmf0zwOdOru6 LlmYDl/lmfZjOaSV7RWFuEFS/pY7IcwATZO+TbkaIf1QWlNf+Yx+EJPcLd+s31ga3oGG7b j5Aq5ByReKclJX44jXbDQYXcdqJgOlfqCTmsMg2qrbaFTKopsM15hucnJuu11yjgWCS8Cj U9+qTNQhtCjIbNLNta57oF1BRBsIhnyd0nzOEHKs+j9o8fCl1azbb/U3BjqTIQ== From: Luca Ceresoli Date: Wed, 16 Sep 2026 15:45:31 +0200 Subject: [PATCH v3 07/19] drm/panel: deprecate panel-bridge APIs 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: 7bit Message-Id: <20260916-drm-bridge-every-panel-v3-7-83afb4f1a707@bootlin.com> References: <20260916-drm-bridge-every-panel-v3-0-83afb4f1a707@bootlin.com> In-Reply-To: <20260916-drm-bridge-every-panel-v3-0-83afb4f1a707@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 , Jessica Zhang , Laurentiu Palcu , Lucas Stach , Frank Li , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Paul Cercueil , Paul Kocialkowski , Linus Walleij , Inki Dae , Jagan Teki , Marek Szyprowski , Sean Paul , Jonathan Corbet , Shuah Khan , Randy Dunlap Cc: Albert Esteve , Anusha Srivatsa , Dmitry Baryshkov , Hui Pu , Ian Ray , Thomas Petazzoni , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, asahi@lists.linux.dev, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-doc@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Luca Ceresoli X-Mailer: b4 0.16.0 X-Last-TLS-Session-Version: TLSv1.3 Now that a drm_bridge is embedded into every drm_panel, the panel_bridge is not needed anymore. Its APIs are just accessing the embedded drm_bridge transparently. Deprecate them all, encouraging to use the drm_bridge API. Signed-off-by: Luca Ceresoli --- drivers/gpu/drm/drm_panel.c | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/drm_panel.c b/drivers/gpu/drm/drm_panel.c index 707ad9aa907a..c00529bfb706 100644 --- a/drivers/gpu/drm/drm_panel.c +++ b/drivers/gpu/drm/drm_panel.c @@ -250,6 +250,9 @@ EXPORT_SYMBOL(drm_bridge_is_panel); * * @panel: The drm_panel being wrapped. Must be non-NULL. * + * This function is deprecated. A drm_bridge is embedded into every panel. + * Don't use it in new drivers and update your driver to stop using it. + * * For drivers converting from directly using drm_panel: The expected * usage pattern is that during either encoder module probe or DSI * host attach, a drm_panel will be looked up through @@ -287,9 +290,8 @@ EXPORT_SYMBOL(drm_panel_bridge_add); * This is just like drm_panel_bridge_add(), but forces the connector type to * @connector_type instead of infering it from the panel. * - * This function is deprecated and should not be used in new drivers. Use - * drm_panel_bridge_add() instead, and fix panel drivers as necessary if they - * don't report a connector type. + * This function is deprecated. A drm_bridge is embedded into every panel. + * Don't use it in new drivers and update your driver to stop using it. */ struct drm_bridge *drm_panel_bridge_add_typed(struct drm_panel *panel, u32 connector_type) @@ -306,6 +308,10 @@ EXPORT_SYMBOL(drm_panel_bridge_add_typed); * created by drm_panel_bridge_add(). * * @bridge: The drm_bridge being freed. + * + * This function is deprecated. A drm_bridge is embedded into every panel + * and removed when the panel is removed. Don't use it in new drivers and + * update your driver to stop using it. */ void drm_panel_bridge_remove(struct drm_bridge *bridge) { @@ -355,6 +361,9 @@ static void devm_drm_panel_bridge_release(struct device *dev, void *res) * @dev: device to tie the bridge lifetime to * @panel: The drm_panel being wrapped. Must be non-NULL. * + * This function is deprecated. A drm_bridge is embedded into every panel. + * Don't use it in new drivers and update your driver to stop using it. + * * This is the managed version of drm_panel_bridge_add() which automatically * calls drm_panel_bridge_remove() when @dev is unbound. */ @@ -379,9 +388,8 @@ EXPORT_SYMBOL(devm_drm_panel_bridge_add); * This is just like devm_drm_panel_bridge_add(), but forces the connector type * to @connector_type instead of infering it from the panel. * - * This function is deprecated and should not be used in new drivers. Use - * devm_drm_panel_bridge_add() instead, and fix panel drivers as necessary if - * they don't report a connector type. + * This function is deprecated. A drm_bridge is embedded into every panel. + * Don't use it in new drivers and update your driver to stop using it. */ struct drm_bridge *devm_drm_panel_bridge_add_typed(struct device *dev, struct drm_panel *panel, @@ -422,6 +430,9 @@ static void drmm_drm_panel_bridge_release(struct drm_device *drm, void *ptr) * @drm: DRM device to tie the bridge lifetime to * @panel: The drm_panel being wrapped. Must be non-NULL. * + * This function is deprecated. A drm_bridge is embedded into every panel. + * Don't use it in new drivers and update your driver to stop using it. + * * This is the DRM-managed version of drm_panel_bridge_add() which * automatically calls drm_panel_bridge_remove() when @dev is cleaned * up. @@ -472,6 +483,10 @@ EXPORT_SYMBOL(drm_panel_bridge_connector); * @port: port in the device tree node * @endpoint: endpoint in the device tree node * + * This function is deprecated. A drm_bridge is embedded into every panel. + * Don't use it in new drivers and convert your driver to + * of_drm_get_bridge_by_endpoint(). + * * Given a DT node's port and endpoint number, finds the connected node * and returns the associated bridge if any, or creates and returns a * drm panel bridge instance if a panel is connected. @@ -508,6 +523,10 @@ EXPORT_SYMBOL(devm_drm_of_get_bridge); * @port: port in the device tree node * @endpoint: endpoint in the device tree node * + * This function is deprecated. A drm_bridge is embedded into every panel. + * Don't use it in new drivers and convert your driver to + * of_drm_get_bridge_by_endpoint(). + * * Given a DT node's port and endpoint number, finds the connected node * and returns the associated bridge if any, or creates and returns a * drm panel bridge instance if a panel is connected. -- 2.55.0