Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1096947yba; Wed, 24 Apr 2019 15:04:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqz9EIkOzpJI+Gb+22YsS4R03iujgf5JVxEAhuwGl4Lesxm1JpxYeVPcb7j+KML/NRW8DbNX X-Received: by 2002:a62:ae13:: with SMTP id q19mr17443408pff.152.1556143476354; Wed, 24 Apr 2019 15:04:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556143476; cv=none; d=google.com; s=arc-20160816; b=jPP57+0CHuNbutzoOKEj7XaaHlMO5i49Olayp/GhD0pT69VN0NrRgcwh+Vf3qx80/5 GiMEcT1SeHbjyF7uxiFJVhY2JWu704d3flHkcc3XDBbfS1amtJYOJH3wJSf5Mbxnuk0B OeBS99mL0lTMPKe6NOndM/Wg43fga4IULKD8ADo0WygDk6dlxDQ/fhDdlf70hRa6QoDz 3KrU93EhSWwNne8gzBmX9JeKVntlNk8MwPXXDfO1VQQTIWjC/3wUuFKUdnyZE5o5GXgl 9D0VwSk1rLqxfAm5Gzpel8J7v159Innd3gGH3X77zKDMo+/g/mXCisZ9oZe5ijsetD5S np6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=t8kYoJE49hBBh3BzA0yHzxLJpEzzDBWtalWv3f1Mn6s=; b=nDsJd1N3m22xPsKgn0tmVHYUQA9oaV6DDzLzvIgzjD+VF8FOxQEPpsI6kbiTfuiGJN frdXNlnw6iIKU0r9UfG4nc3vxe7fB0U5CnmNJAfQ5TsY8M+Zd7vv83sHpeEn6rAMNFkq kSs4QmIzr6bvqNAQLJvTBB7FwTrbdTGboUIO1mF7VzZIqvGKDHc5MSqLKJHrKGeNadC3 HbEErJ2mZt3D6AuQA0ArhaPVqGJNdSAOjzvfp7fTldlCBYTpl8pzfrIsWq6XzgmBEXy1 yJnbxLOzp2d7GhPMc+hBv6INWD8MM0wTTIy6/0bWHqwpjE8xbJzmKreKfL6Vk9OqYwaq CODg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=X9UTBP4W; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u7si12488154pgi.450.2019.04.24.15.04.21; Wed, 24 Apr 2019 15:04:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=X9UTBP4W; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732200AbfDXQ0q (ORCPT + 99 others); Wed, 24 Apr 2019 12:26:46 -0400 Received: from casper.infradead.org ([85.118.1.10]:33174 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727393AbfDXQ0q (ORCPT ); Wed, 24 Apr 2019 12:26:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=t8kYoJE49hBBh3BzA0yHzxLJpEzzDBWtalWv3f1Mn6s=; b=X9UTBP4WY50r88VR8QLRyoJ5D9 mybLnjRiouOFgaq0S+qfqRbyRMQCeCIdYuDGNFLlsXLrcdAGBogjPfmOoV6UYKGoLnq8DBahGs+PL qKy8ENPlJgt607vHQmyIq5W6F11zRXcmv+/pIoGhmHE1tQGDpchew52j2RKN+Yx2UBTYLpkMfb6ZU gmd7VipbYm0Xl1/l6zlejaAkfmv2C/Z1YJjAEpDyDAMS1eKqVJnWZNiUZ86mfGVktv5yHRnlZ8pNk wIJLc5oVyK9fd5QH1sQG9871Vp3CUpCbY9dja6nRrvgbyF5vEHccWi09MlXh9f6FP+0G1X0gGwVMt /WpmNQBw==; Received: from 177.17.136.231.dynamic.adsl.gvt.net.br ([177.17.136.231] helo=coco.lan) by casper.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hJKjI-0004cs-Ff; Wed, 24 Apr 2019 16:26:41 +0000 Date: Wed, 24 Apr 2019 13:26:34 -0300 From: Mauro Carvalho Chehab To: Changbin Du Cc: Jonathan Corbet , Bjorn Helgaas , rjw@rjwysocki.net, linux-pci@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com, x86@kernel.org, fenghua.yu@intel.com, linuxppc-dev@lists.ozlabs.org, linux-acpi@vger.kernel.org, linux-gpio@vger.kernel.org Subject: Re: [PATCH v4 34/63] Documentation: PCI: convert endpoint/pci-endpoint-cfs.txt to reST Message-ID: <20190424132634.5e1d486e@coco.lan> In-Reply-To: <20190423162932.21428-35-changbin.du@gmail.com> References: <20190423162932.21428-1-changbin.du@gmail.com> <20190423162932.21428-35-changbin.du@gmail.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, 24 Apr 2019 00:29:03 +0800 Changbin Du escreveu: > This converts the plain text documentation to reStructuredText format and > add it to Sphinx TOC tree. No essential content change. > > Signed-off-by: Changbin Du > Acked-by: Bjorn Helgaas Reviewed-by: Mauro Carvalho Chehab > --- > Documentation/PCI/endpoint/index.rst | 1 + > ...-endpoint-cfs.txt => pci-endpoint-cfs.rst} | 99 +++++++++++-------- > 2 files changed, 57 insertions(+), 43 deletions(-) > rename Documentation/PCI/endpoint/{pci-endpoint-cfs.txt => pci-endpoint-cfs.rst} (64%) > > diff --git a/Documentation/PCI/endpoint/index.rst b/Documentation/PCI/endpoint/index.rst > index 0db4f2fcd7f0..3951de9f923c 100644 > --- a/Documentation/PCI/endpoint/index.rst > +++ b/Documentation/PCI/endpoint/index.rst > @@ -8,3 +8,4 @@ PCI Endpoint Framework > :maxdepth: 2 > > pci-endpoint > + pci-endpoint-cfs > diff --git a/Documentation/PCI/endpoint/pci-endpoint-cfs.txt b/Documentation/PCI/endpoint/pci-endpoint-cfs.rst > similarity index 64% > rename from Documentation/PCI/endpoint/pci-endpoint-cfs.txt > rename to Documentation/PCI/endpoint/pci-endpoint-cfs.rst > index d740f29960a4..b6d39cdec56e 100644 > --- a/Documentation/PCI/endpoint/pci-endpoint-cfs.txt > +++ b/Documentation/PCI/endpoint/pci-endpoint-cfs.rst > @@ -1,41 +1,51 @@ > - CONFIGURING PCI ENDPOINT USING CONFIGFS > - Kishon Vijay Abraham I > +.. SPDX-License-Identifier: GPL-2.0 > + > +======================================= > +Configuring PCI Endpoint Using CONFIGFS > +======================================= > + > +:Author: Kishon Vijay Abraham I > > The PCI Endpoint Core exposes configfs entry (pci_ep) to configure the > PCI endpoint function and to bind the endpoint function > with the endpoint controller. (For introducing other mechanisms to > configure the PCI Endpoint Function refer to [1]). > > -*) Mounting configfs > +Mounting configfs > +================= > > The PCI Endpoint Core layer creates pci_ep directory in the mounted configfs > -directory. configfs can be mounted using the following command. > +directory. configfs can be mounted using the following command:: > > mount -t configfs none /sys/kernel/config > > -*) Directory Structure > +Directory Structure > +=================== > > The pci_ep configfs has two directories at its root: controllers and > functions. Every EPC device present in the system will have an entry in > the *controllers* directory and and every EPF driver present in the system > will have an entry in the *functions* directory. > +:: > > -/sys/kernel/config/pci_ep/ > - .. controllers/ > - .. functions/ > + /sys/kernel/config/pci_ep/ > + .. controllers/ > + .. functions/ > > -*) Creating EPF Device > +Creating EPF Device > +=================== > > Every registered EPF driver will be listed in controllers directory. The > entries corresponding to EPF driver will be created by the EPF core. > +:: > > -/sys/kernel/config/pci_ep/functions/ > - .. / > - ... / > - ... / > - .. / > - ... / > - ... / > + /sys/kernel/config/pci_ep/functions/ > + .. / > + ... / > + ... / > + .. / > + ... / > + ... / > > In order to create a of the type probed by , the > user has to create a directory inside . > @@ -44,34 +54,37 @@ Every directory consists of the following entries that can be > used to configure the standard configuration header of the endpoint function. > (These entries are created by the framework when any new is > created) > - > - .. / > - ... / > - ... vendorid > - ... deviceid > - ... revid > - ... progif_code > - ... subclass_code > - ... baseclass_code > - ... cache_line_size > - ... subsys_vendor_id > - ... subsys_id > - ... interrupt_pin > - > -*) EPC Device > +:: > + > + .. / > + ... / > + ... vendorid > + ... deviceid > + ... revid > + ... progif_code > + ... subclass_code > + ... baseclass_code > + ... cache_line_size > + ... subsys_vendor_id > + ... subsys_id > + ... interrupt_pin > + > +EPC Device > +========== > > Every registered EPC device will be listed in controllers directory. The > entries corresponding to EPC device will be created by the EPC core. > - > -/sys/kernel/config/pci_ep/controllers/ > - .. / > - ... / > - ... / > - ... start > - .. / > - ... / > - ... / > - ... start > +:: > + > + /sys/kernel/config/pci_ep/controllers/ > + .. / > + ... / > + ... / > + ... start > + .. / > + ... / > + ... / > + ... start > > The directory will have a list of symbolic links to > . These symbolic links should be created by the user to > @@ -81,7 +94,7 @@ The directory will also have a *start* field. Once > "1" is written to this field, the endpoint device will be ready to > establish the link with the host. This is usually done after > all the EPF devices are created and linked with the EPC device. > - > +:: > > | controllers/ > | / > @@ -102,4 +115,4 @@ all the EPF devices are created and linked with the EPC device. > | interrupt_pin > | function > > -[1] -> Documentation/PCI/endpoint/pci-endpoint.txt > +[1] :doc:`pci-endpoint` Thanks, Mauro