From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EB351CA5FD2 for ; Thu, 1 Oct 2026 12:44:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=WapcN4u4O2P2Y+ZdWXKtu9oaGnwPkCOTy0BexZllVJ4=; b=OLhP7B3QNfCA059Pq1KnLndKI6 3vD046ilcQt5IszuN1YnJGs9858cxpNtw5hJpAybwBqIln99iSeOfaVER2fmK9qmM9MmPz/sJo3fH YiRuSd0BovcPQHeBghqUCi5CSw8eOftfJDClUZ5BxcmW/YlikWNKDRpeOgxIgBU+VJjZ/CNweGF0X LQmNoojfPTzSdLaK2cL1Hjlz3nFjkNirP5qw17/422QOwDX6/oO6FtOgh7BofYi4pJ3ISjOIf7HdZ ZGIOlx2Lut0Auf7MgxhIm7U/yiAOCyx3LJoOCqCJ4dbjNtcS3M0D1ddi5lxTFWOEw+Of+i/W5o7PB AmmzbQzw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xCG9I-000000097HK-2HLr; Thu, 01 Oct 2026 12:44:32 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xCG9H-000000097FE-06pO for linux-arm-kernel@bombadil.infradead.org; Thu, 01 Oct 2026 12:44:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Cc:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Sender:Reply-To:Content-ID:Content-Description; bh=WapcN4u4O2P2Y+ZdWXKtu9oaGnwPkCOTy0BexZllVJ4=; b=KyfYlNaHcH7c5JIsGhMeSl9rY5 MQ8IK6xQfMkaWFLNd49ayP0r7jr2H4w2gI1WyI1CDBaQOnSaH68BAmO7ZdiacA19rxiJoZancEpbt 613b7AZooHSsfRcWiMslT/UToJKdGzV7RokYpG3boS1XSAL5y78lasn0zpVkZNKh51pQ7DTLbav9Z HF9iQ1QQEmaF1igu773N3KVDxnTlVIQXP8zAvDMJ1G2bXj8blvf0p0CVU3g83bKNQbQMhl9mXYusj TBeRt8Q01VsLHXuMO9DGQSul0QdOK7du3UDKBfC+TWtqgn5PCp6MnxDwgSQlIgUW5M1sfHd3MG7im +4Wuc87w==; Received: from smtpout-03.galae.net ([185.246.85.4]) by desiato.infradead.org with esmtps (Exim 4.99.2 #2 (Red Hat Linux)) id 1xCG9E-00000004ymV-0T8L for linux-arm-kernel@lists.infradead.org; Thu, 01 Oct 2026 12:44:29 +0000 Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 76D944E42328; Thu, 1 Oct 2026 12:44:20 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 42C2560341; Thu, 1 Oct 2026 12:44:20 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id E3F3E103280C2; Thu, 1 Oct 2026 14:44:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1790858654; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=WapcN4u4O2P2Y+ZdWXKtu9oaGnwPkCOTy0BexZllVJ4=; b=aBPKzM7g8VsMMRJ6dD92iJu+e9xBuoG91dnx+NjfTvZY4daWydYrbRK3OEY1q2sDB8QgLa bMJe5HarR/RyCZMGwGHePJNbBtVgZbqbsr+VU6pbFQ+fS7r9igQAIxQcAJKk4wAwytNe9q vYdW06HwfKqcGXQK8QX7c9zI0ARqj5jAN7xB9A0TEVnZo/d0gjyE+SEdcsxbDTedFjZKRP MRhHWm+SOCwcCja8bGdxTXnD0KnhwoaWrKKPjwBqlrFIOmcnfTGiB/zcktScPT/eNFNvsa imua9heDWQ+eXKqQLPyxmUrh/I2K6crsDT0gdIef3pDU88Wf2KxQrAkc3lvnjw== From: Luca Ceresoli Date: Thu, 01 Oct 2026 14:42:38 +0200 Subject: [PATCH RFC v2 16/24] drm/mipi-dsi: notify about DSI attach MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261001-drm-bridge-hotplug-v2-16-8e34986dcb68@bootlin.com> References: <20261001-drm-bridge-hotplug-v2-0-8e34986dcb68@bootlin.com> In-Reply-To: <20261001-drm-bridge-hotplug-v2-0-8e34986dcb68@bootlin.com> To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Inki Dae , Jagan Teki , Marek Szyprowski , Jessica Zhang , Douglas Anderson , Marek Vasut , Stefan Agner , Frank Li , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Hui Pu , Ian Ray , Luca Ceresoli , Thomas Petazzoni , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org X-Mailer: b4 0.16.0 X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261001_134428_236231_4DCE53C3 X-CRM114-Status: GOOD ( 11.84 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In preparation to support DRM bridge hotplug, let the drm_mipi_dsi code emit an event when a DSI device is attached to the corresponding DSI host, so that this event can trigger the actions needed to deconfigure the pipeline and unregister the connector as appropriate. Signed-off-by: Luca Ceresoli --- drivers/gpu/drm/Kconfig | 1 + drivers/gpu/drm/drm_mipi_dsi.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig index 17c86244c75a..59015e89de92 100644 --- a/drivers/gpu/drm/Kconfig +++ b/drivers/gpu/drm/Kconfig @@ -45,6 +45,7 @@ config DRM_MIPI_DBI config DRM_MIPI_DSI tristate depends on DRM + select DRM_EVENT_NOTIFIER config DRM_KMS_HELPER tristate diff --git a/drivers/gpu/drm/drm_mipi_dsi.c b/drivers/gpu/drm/drm_mipi_dsi.c index 3ac1dd5ad640..eaa474da4a51 100644 --- a/drivers/gpu/drm/drm_mipi_dsi.c +++ b/drivers/gpu/drm/drm_mipi_dsi.c @@ -34,6 +34,7 @@ #include #include +#include #include #include @@ -386,6 +387,8 @@ int mipi_dsi_attach(struct mipi_dsi_device *dsi) dsi->attached = true; + drm_event_notifier_notify(DRM_MIPI_DSI_ATTACHED, dsi); + return 0; } EXPORT_SYMBOL(mipi_dsi_attach); -- 2.55.0