Skip to contentSkip to conversation

drm/doc: add warning about connector_type_id stability

PATCH In review Simon Ser 2 participants 2 messages Jul 17, 2023

Subsystems (2)
lore
Share & tools
lore

Simon Ser

author
#0 lore raw

PATCH 1/1 drm/doc: add warning about connector_type_id stability

Mention that the connector_type_id is not stable: it depends on driver and device probe order.

Cc Daniel Vetter <[email protected]>
Cc Pekka Paalanen <[email protected]>
---
 include/uapi/drm/drm_mode.h | 3 +++
 1 file changed, 3 insertions(+)
include/uapi/drm/drm_mode.h +3 -0
index 92d96a2b6763..ea1b639bcb28 100644
@@ -488,6 +488,9 @@ struct drm_mode_get_connector {
 	 * This is not an object ID. This is a per-type connector number. Each
 	 * (type, type_id) combination is unique across all connectors of a DRM
 	 * device.
+	 *
+	 * The (type, type_id) combination is not a stable identifier: the
+	 * type_id can change depending on the driver probe order.
 	 */
 	__u32 connector_type_id;
 
Signature · 1 line
2.41.0
Acked-by on v1 1/1
#1 lore raw
Quoted 15 lines · On Mon, 17 Jul 2023 13:13:09 +0000 Simon Ser <[email protected]> wrote:

Mention that the connector_type_id is not stable: it depends on driver and device probe order.

Cc Daniel Vetter <[email protected]>
Cc Pekka Paalanen <[email protected]>
---
 include/uapi/drm/drm_mode.h | 3 +++
 1 file changed, 3 insertions(+)
include/uapi/drm/drm_mode.h +0 -0
index 92d96a2b6763..ea1b639bcb28 100644

include/uapi/drm/drm_mode.h struct drm_mode_get_connector { · line 496

Quoted 9 lines
include/uapi/drm/drm_mode.h +3 -0
@@ -488,6 +488,9 @@ struct drm_mode_get_connector {
 	 * This is not an object ID. This is a per-type connector number. Each
 	 * (type, type_id) combination is unique across all connectors of a DRM
 	 * device.
+	 *
+	 * The (type, type_id) combination is not a stable identifier: the
+	 * type_id can change depending on the driver probe order.
 	 */
 	__u32 connector_type_id;
 

Thanks,
pq