From patchwork Mon Jul 17 13:13:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Ser X-Patchwork-Id: 13315657 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 AFEE8EB64DC for ; Mon, 17 Jul 2023 13:13:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3272A10E243; Mon, 17 Jul 2023 13:13:25 +0000 (UTC) Received: from mail-4323.proton.ch (mail-4323.proton.ch [185.70.43.23]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3769D10E258 for ; Mon, 17 Jul 2023 13:13:23 +0000 (UTC) Date: Mon, 17 Jul 2023 13:13:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail2; t=1689599600; x=1689858800; bh=BgHYcfI/OdkCVJ+9YqDXLHYNiN1Ru4k9bujnCXL11M0=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=ljRyQnn8KPzAeySdZhBUYcM2NFDaqmS6hPOpWqwrLeonNbAK8rcpFWhHgLAuFs2gC WQNXHDtQlNQZ8th18igUWU8kjiBeg6ppPdyvoaggt3LELPIdZ9hYUgbN1HATwayb7k PgLtYpzWX0R6pmNGCqwpMAEC4jaLtnO0V3WWY7dWdgvBJy9mGbB8EtcgR+DP88iQsD DXlm3K3qCqPKHddqdfEyMOBideOgTvT3Vp91A2R9Ps0eKAJdRs+1tydQLcExPT6RiI 7E5kaa2mkUdBNVVw+Phgee2RObJRrfuIppefJMyP11V1jcqKPHte9suldCbOS2Dba4 5A3yuriAAqGoQ== To: dri-devel@lists.freedesktop.org From: Simon Ser Subject: [PATCH] drm/doc: add warning about connector_type_id stability Message-ID: <20230717131305.616855-1-contact@emersion.fr> Feedback-ID: 1358184:user:proton MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Vetter , Pekka Paalanen Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Mention that the connector_type_id is not stable: it depends on driver and device probe order. Signed-off-by: Simon Ser Cc: Daniel Vetter Cc: Pekka Paalanen Acked-by: Pekka Paalanen --- include/uapi/drm/drm_mode.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uapi/drm/drm_mode.h b/include/uapi/drm/drm_mode.h index 92d96a2b6763..ea1b639bcb28 100644 --- a/include/uapi/drm/drm_mode.h +++ b/include/uapi/drm/drm_mode.h @@ -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;