Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5243403pxv; Wed, 28 Jul 2021 06:34:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwv0JOp1b62HIxN5VLUUHYZwk6M9LrCwOOgpXdK959QbxqeDC1uLaCjiyOUiGSegoI34Kw4 X-Received: by 2002:a17:906:8741:: with SMTP id hj1mr4129605ejb.140.1627479275153; Wed, 28 Jul 2021 06:34:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627479275; cv=none; d=google.com; s=arc-20160816; b=iioE/YxYye4RKGx/c6+doM1lmys7nD3kLlGCxAVWAxo3cmkjDBMuSnDHxIlhU4LQXr wo7p6XcO62PbjShg4AM0GagbbPNXCQ73fbpPL7KCl139HUgnxio577OtPIGIREC/IViV HdB/2PMJlk7q3aG4x4TRsgFspHQ3yT9n8EUoXsSvpulw9z6bLG0kTp5IBElRxuxidbUQ XpOOftk0S1MCWLVNENFTlLcmbxgdlcqsKuwpg8bLkkKimWYC367e6fmPiowbPVbHN6oT z3KrSSskjoimI39XNQ4rr5fCuIbPX3FUcPq6oPyHldmwx+yQaaoo/V4LdWyaWx3eUyg4 UXTw== 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=gBLF9/web37jc0sR1lKbGPZeTeNlB6xH7qPvpoJe3vw=; b=WNW9qPF1AfmFtiDwofPkaSadjjcm529j8N6B6JMhtAIzZ+/nvOpq8HgfINYN5mooXF FiGBl3NWcQ09l3LXhChm2wNWcoxa65e03ROyVEMY6CGVgcQP4P9aqppruYyrEufMrYBV aXAKD6qhCcdx1peW8Vad1d0W6LPTnjCi86vSZartNBVT60oCloXhzkQMBm/+j0yAaLn9 24D24YYf27dLjKR/wUwDCfpVuaWbD+inJyYiDIHoL/C4RsicjDRgEZKIEU8neNdrV2i4 shOfezQq/emv9BfxuhHSSMSe8bqsomRRcKO4NIHyhyFCmQz6xqYiOZtlzxMOcYdiK/Ql yLfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=kUGewio9; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=ifZZvvfA; 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 o16si6028143ejh.496.2021.07.28.06.34.11; Wed, 28 Jul 2021 06:34:35 -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=kUGewio9; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=ifZZvvfA; 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 S236424AbhG1Ncv (ORCPT + 99 others); Wed, 28 Jul 2021 09:32:51 -0400 Received: from new3-smtp.messagingengine.com ([66.111.4.229]:34561 "EHLO new3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236436AbhG1Ncr (ORCPT ); Wed, 28 Jul 2021 09:32:47 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailnew.nyi.internal (Postfix) with ESMTP id 8226E580B85; Wed, 28 Jul 2021 09:32:45 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 28 Jul 2021 09:32:45 -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=gBLF9/web37jc 0sR1lKbGPZeTeNlB6xH7qPvpoJe3vw=; b=kUGewio9Xge2fC03bR981X033hi7Z NFVBBt/xJs0v9UF6AOkFsMP0JYTVLgc+sPQay8aA+ky/kM/M7UcZ6YU72SjbNLy6 a2TXdiQL0jPO2czdILAp2n1aUINGcNJuuPHF3oY71BmJ3J/VMxuHPKXhyC593Jaq DndhMiR229n02bYAF5ZrjnXpO9nVG2BOnTYd/fYz3JikSAFNyDn+RYDZGuQXhwY6 /GOKRmkubFpJ4ope0EUbGhCeh5YFIvaW5HxcMictvQBhpCUzHAI7qZbttoYbSi4+ R8N4bShGRc4TKL/MX0fTY56ZXb3OQ80EJgP99kK5GQcXdIpmaT+Tyutog== 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=gBLF9/web37jc0sR1lKbGPZeTeNlB6xH7qPvpoJe3vw=; b=ifZZvvfA 2E9chGFwjMocx957UDXa56r7KMaC+VGbQBr58ZktI2zBlkfVuhCF0fBtzAR2bN3k 6P9RuRKHBkhj/OXcQoI82Zn4K1eZYg0DLQHOFtm2aaNIcb5+6CMI33e7KAphN7Xq r3MObaueTOmzWeSMfXG++XQ38b/tXVOUYjLqTVPzUNKC35kEhklUnVfJeH+yEElp AqhXePrgvTSK1R9uavfTPoIBFyGBWdjbe5Vs6CAvvwf6vSL3JrUBhcxZ8sqFhQ+c LcbKGRUDGbgPHIcssMRXz62xL7lj2lBu2PhUC5nWDuQjaz9gcHcVoSAP26YCLtjX P19wLtqre6N2pA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrgeelgdeivdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtth gvrhhnpedvkeelveefffekjefhffeuleetleefudeifeehuddugffghffhffehveevheeh vdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrg igihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 28 Jul 2021 09:32:43 -0400 (EDT) From: Maxime Ripard To: Sam Ravnborg , Daniel Vetter , David Airlie , Thierry Reding , Laurent Pinchart , Maarten Lankhorst , Thomas Zimmermann , Maxime Ripard , Jernej Skrabec , Neil Armstrong , Andrzej Hajda , Jonas Karlman , Robert Foss Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH v2 3/8] drm/bridge: Add documentation sections Date: Wed, 28 Jul 2021 15:32:24 +0200 Message-Id: <20210728133229.2247965-4-maxime@cerno.tech> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210728133229.2247965-1-maxime@cerno.tech> References: <20210728133229.2247965-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 separate each bits. Reviewed-by: Sam Ravnborg 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 426ce7442c86..71d3370ce209 100644 --- a/drivers/gpu/drm/drm_bridge.c +++ b/drivers/gpu/drm/drm_bridge.c @@ -49,6 +49,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 * devm_drm_of_get_bridge(). Once acquired, the bridge shall be attached to the @@ -83,11 +92,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