dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Pass down hot plug CONNECTOR ID to user-space
@ 2025-09-23  8:36 Marius Vlad
  2025-09-23  8:36 ` [PATCH 1/2] drm: Introduce a new connector status Marius Vlad
  2025-09-23  8:36 ` [PATCH 2/2] drm: Propagate connector status change Marius Vlad
  0 siblings, 2 replies; 8+ messages in thread
From: Marius Vlad @ 2025-09-23  8:36 UTC (permalink / raw)
  To: dri-devel
  Cc: daniel.stone, dmitry.baryshkov, jani.nikula, tzimmermann,
	simona.vetter, derek.foreman

Patch series addresses a shortcoming where we're sending a hot plug event
without passing the actual CONNECTOR that caused it. This takes into
consideration both the polling path and the HPD (Hot Plug Detect) path.

v3: Address comments from Dmitry

- guard connector status write with mode_config.mutex
- avoid setting up the connector status and immediately unset it. Do the
  unset in drm_kms_helper_hotplug_event/drm_kms_helper_connector_hotplug_event

v2: Address comments from Daniel

- split patch into 2, one that introduces a bool to track connector
  connection status change and a patch that uses that to be able to send
  hot plug events with the proper CONNECTOR ID to udev and further pass
  that down to user-space
- nuke out mutex when iterating connector list
- fix typo

v2 is at https://lore.kernel.org/dri-devel/20250729165708.9947-1-marius.vlad@collabora.com/

Marius Vlad (2):
  drm: Introduce a new connector status
  drm: Propagate connector status change

 drivers/gpu/drm/drm_connector.c    |  1 +
 drivers/gpu/drm/drm_probe_helper.c | 40 ++++++++++++++++++++++++++----
 drivers/gpu/drm/drm_sysfs.c        |  1 +
 include/drm/drm_connector.h        |  3 +++
 4 files changed, 40 insertions(+), 5 deletions(-)

-- 
2.47.2


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-11-03 18:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-23  8:36 [PATCH v3 0/2] Pass down hot plug CONNECTOR ID to user-space Marius Vlad
2025-09-23  8:36 ` [PATCH 1/2] drm: Introduce a new connector status Marius Vlad
2025-09-23 15:53   ` Dmitry Baryshkov
2025-11-03 18:07     ` Marius Vlad
2025-09-23 17:34   ` Ian Forbes
2025-11-03 18:01     ` Marius Vlad
2025-09-25  6:51   ` kernel test robot
2025-09-23  8:36 ` [PATCH 2/2] drm: Propagate connector status change Marius Vlad

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox