[PATCH RFC v3 18/31] drm/mipi-dsi: notify about DSI attach

From: Luca Ceresoli

Date: Wed Nov 18 2026 - 11:52:48 EST


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 configure the pipeline
and register the connector as appropriate.

Signed-off-by: Luca Ceresoli <luca.ceresoli@xxxxxxxxxxx>

---

Changes in v3:
- use new v3 notifier API name
- fix commit message
---
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 105dd46a0a45..3ebd9388bdda 100644
--- a/drivers/gpu/drm/Kconfig
+++ b/drivers/gpu/drm/Kconfig
@@ -45,6 +45,7 @@ config DRM_MIPI_DBI
config DRM_MIPI_DSI
bool
depends on DRM
+ select DRM_HOTPLUG_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..ae49f3aa1b2b 100644
--- a/drivers/gpu/drm/drm_mipi_dsi.c
+++ b/drivers/gpu/drm/drm_mipi_dsi.c
@@ -34,6 +34,7 @@
#include <linux/slab.h>

#include <drm/display/drm_dsc.h>
+#include <drm/drm_hotplug_event_notifier.h>
#include <drm/drm_mipi_dsi.h>
#include <drm/drm_print.h>

@@ -386,6 +387,8 @@ int mipi_dsi_attach(struct mipi_dsi_device *dsi)

dsi->attached = true;

+ drm_hotplug_event_notifier_notify(DRM_MIPI_DSI_ATTACHED, dsi);
+
return 0;
}
EXPORT_SYMBOL(mipi_dsi_attach);

--
2.56.1