Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4571902pxv; Tue, 20 Jul 2021 06:54:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz26DxdCIOhffTh2vBHaFlQSVr1beCQU7U4SUOAGmduJjMQYVpfFHLJFnESZ9E3s/vYly0Z X-Received: by 2002:a92:cf0a:: with SMTP id c10mr14923389ilo.19.1626789270104; Tue, 20 Jul 2021 06:54:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626789270; cv=none; d=google.com; s=arc-20160816; b=yDsR6fA5jKhsjiuYL2Nj2LcOoqLd4RqeF90TzJRlSszS4EfOqK6TZNvo0Tdd9TcL3a 6ojwHkN6rWJ+nGziZPe7eUw8igD1bgzDTSk/PR9x/KOFwCNlOnWoZuJGtgztqO65zDKd sQ9PsLQrIxqR9of1LP7mBvf7D9rPUFFE2GXf2bBKGU/OEj0doBMAs5pFO2fgaqPVpKgT sdpC+BtHfmanM2hAJmPQlwXbRZiY1a+OXXw35Bjiq/LWwC7Xu2zIZnbGejbgYg4gv3Fi KkHi2KdR79F3Q0VH+nesiuhB4HCnxi8EoHV4Mj65oI4AJ2a1DVwBLjvvk6+GifADK/X5 l9UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=BlLF334688PDip4UlmyHDphu5KOpwIjt5VbcUSY2TZ0=; b=ySozolQyt/03pWJtxgVyRkxsqSi7+u1My1LvF2OOXWjQLVECcL+AdHzytBo+o9+Cr5 Apz4oYccRjKGwqyVOY+b8MS/2g9ufGFPZo/jrQMxEO85IrSU7obbT6yfhNQMTwbkGVky bscigXmyc7Ik4LvmF/6o8CzzO8YR6gNYRwBtARCq1oqBjj0xr5MRmDWO37sZpV28WVSz m2k+3cC58tbUqLblSR5+G0v7tTnDvYoTddu2oFkmShfZRdihNPGTsxccVjDQ7gUngLRf 1d/CFCDeHLIi91ALg2Wvo4p23khCOXaTpRAesp8bC2/73D5NMrBRBM4mw59A0M3fDulF bogQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=vOoefpxZ; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=EeTc99I5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u21si23358146jak.34.2021.07.20.06.54.19; Tue, 20 Jul 2021 06:54:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=vOoefpxZ; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=EeTc99I5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233918AbhGTNLn (ORCPT + 99 others); Tue, 20 Jul 2021 09:11:43 -0400 Received: from wnew3-smtp.messagingengine.com ([64.147.123.17]:35645 "EHLO wnew3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237311AbhGTNFJ (ORCPT ); Tue, 20 Jul 2021 09:05:09 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.west.internal (Postfix) with ESMTP id EBCF22B01187; Tue, 20 Jul 2021 09:45:43 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 20 Jul 2021 09:45:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm3; bh=BlLF334688PDi p4UlmyHDphu5KOpwIjt5VbcUSY2TZ0=; b=vOoefpxZalgZMMClcnkMFXTxr5EG7 NCg8hC3Hkh8ArQ0hHT/6izNim6LRzxvZAdBMZSCyVeXD5hUOS7665e/UFL2aG+vJ Sd4RQdNqBOYLHiIGKIxu85d0CqEtAOcoecHUULTKYvkQSjWVbktquq9qeSQhEYrA uNgKjqUKet5grp7MMVV0pWMpXDy3y1mQ+54+l8BkXbPbgg2ZQjG06qao1ypDiyQ2 trOrSaAUiz/GVcJLxTdQ5Lgo96YYKGmXcJltSY4dLVHBZqnVuYG5leiNVDXcr4p6 LurkvQ5N8SLD//KmdQ2gZBuE0s6YCfTaDshaoqxFVqa7/8VDVFIXw++zw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=BlLF334688PDip4UlmyHDphu5KOpwIjt5VbcUSY2TZ0=; b=EeTc99I5 jACW/T7jxsf3/LxIBj9YK834D9MXiVLZwkBzT4vqyryQ/DbA7UPQd4HOFODxGROU nLqhR1Eu7C5gCBI6BLqRAghJ397HlV0xGLUq9rCCsqPy19+/s2c5TjVCpW0eCXBv fqgU5leV9X0NpVscTyjBDvbhuFis7IyUY4pRP8Obzl+gLKc1brq3kCj2FqpbTLg8 J5gN4IP2Nw90i0Byl95fl9LoG9XCMlEU4Kcy2Xv/utfbo/IeLgRdiuhEbte+kjCy 1KnVKvqEu9avx9wSSJKi8Lq9JtW9Efz+q2rN67gFAJ6Wm9rYlKIWN2HrH6XW7KH/ 9Ec1dgpVccRKGQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrfedvgdeikecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtth gvrhhnpedvkeelveefffekjefhffeuleetleefudeifeehuddugffghffhffehveevheeh vdenucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrg igihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 20 Jul 2021 09:45:43 -0400 (EDT) From: Maxime Ripard To: Robert Foss , Andrzej Hajda , Daniel Vetter , David Airlie , Sam Ravnborg , Maarten Lankhorst , Thomas Zimmermann , Maxime Ripard , Neil Armstrong , Jonas Karlman , Jernej Skrabec , Thierry Reding , Laurent Pinchart Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 03/10] drm/bridge: Add documentation sections Date: Tue, 20 Jul 2021 15:45:18 +0200 Message-Id: <20210720134525.563936-4-maxime@cerno.tech> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210720134525.563936-1-maxime@cerno.tech> References: <20210720134525.563936-1-maxime@cerno.tech> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The bridge documentation overview is quite packed already, and we'll add some more documentation that isn't part of an overview at all. Let's add some sections to the documentation to separare each bits. Signed-off-by: Maxime Ripard --- Documentation/gpu/drm-kms-helpers.rst | 6 ++++++ drivers/gpu/drm/drm_bridge.c | 14 +++++++++----- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/Documentation/gpu/drm-kms-helpers.rst b/Documentation/gpu/drm-kms-helpers.rst index 389892f36185..10f8df7aecc0 100644 --- a/Documentation/gpu/drm-kms-helpers.rst +++ b/Documentation/gpu/drm-kms-helpers.rst @@ -151,6 +151,12 @@ Overview .. kernel-doc:: drivers/gpu/drm/drm_bridge.c :doc: overview +Display Driver Integration +-------------------------- + +.. kernel-doc:: drivers/gpu/drm/drm_bridge.c + :doc: display driver integration + Bridge Operations ----------------- diff --git a/drivers/gpu/drm/drm_bridge.c b/drivers/gpu/drm/drm_bridge.c index aef8c9f4fb9f..c9a950bfdfe5 100644 --- a/drivers/gpu/drm/drm_bridge.c +++ b/drivers/gpu/drm/drm_bridge.c @@ -50,6 +50,15 @@ * Chaining multiple bridges to the output of a bridge, or the same bridge to * the output of different bridges, is not supported. * + * &drm_bridge, like &drm_panel, aren't &drm_mode_object entities like planes, + * CRTCs, encoders or connectors and hence are not visible to userspace. They + * just provide additional hooks to get the desired output at the end of the + * encoder chain. + */ + +/** + * DOC: display driver integration + * * Display drivers are responsible for linking encoders with the first bridge * in the chains. This is done by acquiring the appropriate bridge with * drm_of_get_next(). Once acquired, the bridge shall be attached to the @@ -84,11 +93,6 @@ * helper to create the &drm_connector, or implement it manually on top of the * connector-related operations exposed by the bridge (see the overview * documentation of bridge operations for more details). - * - * &drm_bridge, like &drm_panel, aren't &drm_mode_object entities like planes, - * CRTCs, encoders or connectors and hence are not visible to userspace. They - * just provide additional hooks to get the desired output at the end of the - * encoder chain. */ static DEFINE_MUTEX(bridge_lock); -- 2.31.1