Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7157665ybi; Mon, 8 Jul 2019 15:49:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwNrGbLZW/Foyz/WMVGNDB/W3aIVwLIjielF3bkJKzbxYhfpfH83I8sLJpLbuaXzXspAiOH X-Received: by 2002:a63:8a43:: with SMTP id y64mr26411653pgd.104.1562626157081; Mon, 08 Jul 2019 15:49:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562626157; cv=none; d=google.com; s=arc-20160816; b=SzT8ZkCQX7iwoUOlLX/v11WzfhP983lmx7e4Kmy6dLvyT4aFU/iIVL5IaG88fZ/2Bs 1EXQiInhQX1jX7nL6PdwGmhUcl0xkrsizEvN0xghChSlpSYtMMLh3Si3slx8zAvMWdQA AUvIsvlnnxunT3OCu9ixKQtuP1cLNqXMFLOjeWqss/wOHVfIkloEb1Lzq2K00kAY+qwC DFrAenqVOMMAHdikRlyp2Vrb4wqTGcbM9D0Tvchh0E3FNk0DEY7Ibbug8W6GKEyGPKbg KFc6Ew3FtMwpHduEo4HWEXyVXPeteVjNEigtIkHyMk3aKxkzDuEiXO9z65kNGlXyMstm D+oA== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=hbKpMkYV5QwH+lccbg8FBBxr6j/Gy8X1sNMK4LcZ2SQ=; b=sdoMSjckE+FMxW7w+CyxITjsa//A4m7AO4LI3VwejzT9MPP8GL1HpXHIQ5WthttSc7 7zOvnAEBzeZjHsQYVQ/yK4KA3Pj+9BwIxD+EZ/mmoQjYATM/ta6G7NjZb7OP/zI8co1i ifRiMFm1MjYFruG6O0UCEgazFj6wjpGLFW6uvv1HQY5RONoNi0FbZ45aSr8tcgxNtwNi UZmFjb/tQjJ0HCFBcreSzPKrqH44ubPqL6oneLyKlqz0bFwxlsxFJzA3bVhWii1eabkw bkOB4NAThZAHK6SZPivEhLWHCTVhT3CjPdObWBmGwm84iNZuTakbu8ImoYuTOpkMbEYP CtEQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r129si19186848pgr.21.2019.07.08.15.49.02; Mon, 08 Jul 2019 15:49:17 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404779AbfGHUJ5 (ORCPT + 99 others); Mon, 8 Jul 2019 16:09:57 -0400 Received: from ms.lwn.net ([45.79.88.28]:53304 "EHLO ms.lwn.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727663AbfGHUJ4 (ORCPT ); Mon, 8 Jul 2019 16:09:56 -0400 Received: from lwn.net (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 8CC8C2B8; Mon, 8 Jul 2019 20:09:55 +0000 (UTC) Date: Mon, 8 Jul 2019 14:09:54 -0600 From: Jonathan Corbet To: Phong Tran Cc: mathieu.poirier@linaro.org, suzuki.poulose@arm.com, skhan@linuxfoundation.org, mchehab@kernel.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org Subject: Re: [PATCH] Documentation: coresight: covert txt to rst Message-ID: <20190708140954.35a38021@lwn.net> In-Reply-To: <20190705204512.15444-1-tranmanphong@gmail.com> References: <20190705204512.15444-1-tranmanphong@gmail.com> Organization: LWN.net MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 6 Jul 2019 03:45:12 +0700 Phong Tran wrote: > change the format file and adpate the text style > > Signed-off-by: Phong Tran > --- > .../trace/{coresight.txt => coresight.rst} | 296 ++++++++++++--------- > Documentation/trace/index.rst | 1 + > 2 files changed, 167 insertions(+), 130 deletions(-) > rename Documentation/trace/{coresight.txt => coresight.rst} (59%) > > diff --git a/Documentation/trace/coresight.txt b/Documentation/trace/coresight.rst > similarity index 59% > rename from Documentation/trace/coresight.txt > rename to Documentation/trace/coresight.rst > index efbc832146e7..bea24e70cfba 100644 > --- a/Documentation/trace/coresight.txt > +++ b/Documentation/trace/coresight.rst > @@ -1,5 +1,6 @@ > - Coresight - HW Assisted Tracing on ARM > - ====================================== > +====================================== > +Coresight - HW Assisted Tracing on ARM > +====================================== > > Author: Mathieu Poirier > Date: September 11th, 2014 > @@ -26,7 +27,7 @@ implementation, either storing the compressed stream in a memory buffer or > creating an interface to the outside world where data can be transferred to a > host without fear of filling up the onboard coresight memory buffer. > > -At typical coresight system would look like this: > +At typical coresight system would look like this:: > > ***************************************************************** > **************************** AMBA AXI ****************************===|| > @@ -95,6 +96,7 @@ Acronyms and Classification > > Acronyms: > > +======== ============================================================= > PTM: Program Trace Macrocell > ETM: Embedded Trace Macrocell > STM: System trace Macrocell > @@ -104,6 +106,7 @@ TPIU: Trace Port Interface Unit > TMC-ETR: Trace Memory Controller, configured as Embedded Trace Router > TMC-ETF: Trace Memory Controller, configured as Embedded Trace FIFO > CTI: Cross Trigger Interface > +======== ============================================================= A minor nit, but since you're making a table out of this, you don't need the colons in the first column. > Classification: > > @@ -118,7 +121,7 @@ Misc: > > > Device Tree Bindings > ----------------------- > +-------------------- > > See Documentation/devicetree/bindings/arm/coresight.txt for details. > > @@ -133,57 +136,63 @@ The coresight framework provides a central point to represent, configure and > manage coresight devices on a platform. Any coresight compliant device can > register with the framework for as long as they use the right APIs: > > -struct coresight_device *coresight_register(struct coresight_desc *desc); > -void coresight_unregister(struct coresight_device *csdev); > +.. c:function:: struct coresight_device *coresight_register(struct coresight_desc *desc); > +.. c:function:: void coresight_unregister(struct coresight_device *csdev); > > -The registering function is taking a "struct coresight_device *csdev" and > +The registering function is taking a :code:`struct coresight_device *csdev` and As a general rule, we would rather see less markup in the text files than you are applying here. Just present the prototypes in a literal block here. (Even better would be a nice kerneldoc comment in the source that could be pulled in, but that's more work). I wouldn't use :code: anywhere, really. As well as addressing Mathieu's comments, could you pass through and cut the markup down to the bare minimum? Thanks, jon