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 672784F7965 for ; Tue, 19 May 2026 10:40:14 +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=1779187215; cv=none; b=n9uELpfUQWroLkM7QZikad/Ola96CJ6g9vswDdv3DT+7G8xyigW7nkCtAXS7a0ju4NEO0L9WZXtX7iwsq0rS4B9FcOg8j3Jya9rziiv7bSj+jz9EclqWQAtc0eLHWsgfiloK+iC8S7toPGrSjml61e81C6VVu+aRbJQ3sLDMwwg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779187215; c=relaxed/simple; bh=JUNAhhYd/MvLZ4MbTJMMM1aLkexb53DFHEsltMugqo8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YJjpbjMeIxXWV29t9uieIEH3sn4ijtNB7VQYykv64QTHV2TRiYU+K+kgb2YsSxWwsXddX+V4znzsAa0uIggq9M5ruK7x0LkZ5MyFQar7xe9AXYqU4PoxO6IaG6SQJ1CbU3GaGaA2N5WuBUbTpzCktbCe+ZhxTzrzGWL20FB+KYs= 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=xIWpGSJc; 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="xIWpGSJc" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 1501E1A3629; Tue, 19 May 2026 10:40:13 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id D3401606E9; Tue, 19 May 2026 10:40:12 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 4AA2D107E8AE7; Tue, 19 May 2026 12:40:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1779187211; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=XPnXnL28rnew1q1eDqo7jc72bZYvB4PM1bXhy+LViR8=; b=xIWpGSJc3I8LET6EbkDG+Nla5ohZq8g8XGvlTlC07NzLdPwZGXhp1zST0RdzD0veUGtI4S swuJhpmqt27iNxEG9ucGtb3qbiUh+/+Q75tNRTdED/VgMgv16qHq8Wq2H703LS1W1euRFB jAx6EIvItpAPEFP+ZfGO2wvKcc6oahowivGxMUSWP1R6Zf96JcUO9fkUvnP54/vuiqCDDw xZkOCZx3yJrXJLK2zytWtiuN1keBO9My/He1vAIFhcMzEmIEo70kF7vtIQ/LRUM+Y6F1ZU Dha7WXg6MAOJozjGtVdjwVnUBqnJczTXe7jLji9m/SCxFpQivb2XeEVhle7kxQ== From: Luca Ceresoli Date: Tue, 19 May 2026 12:37:46 +0200 Subject: [PATCH 29/37] drm/mipi-dsi: notify about DSI attach 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: <20260519-drm-bridge-hotplug-v1-29-45e2bdb3dfb4@bootlin.com> References: <20260519-drm-bridge-hotplug-v1-0-45e2bdb3dfb4@bootlin.com> In-Reply-To: <20260519-drm-bridge-hotplug-v1-0-45e2bdb3dfb4@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 , Marek Vasut , Stefan Agner , Frank Li , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: 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, Luca Ceresoli X-Mailer: b4 0.15.2 X-Last-TLS-Session-Version: TLSv1.3 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 3093d5f30724..288845b6621b 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.54.0