Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4739886pxb; Tue, 5 Oct 2021 09:19:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNVq79mKaheek62dcGwjogP1sI1c4RX0h911b3clK5EBA3AIM7InK3fsLo9KmNtgtc03Ii X-Received: by 2002:a17:902:c3cb:b0:13e:d198:4672 with SMTP id j11-20020a170902c3cb00b0013ed1984672mr6087134plj.80.1633450777913; Tue, 05 Oct 2021 09:19:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633450777; cv=none; d=google.com; s=arc-20160816; b=Gk4uqgkFlja5TdF8v+UpQqc4TcI9+2QYuCNoZ0PGb+pRrMMQqsXKiTR/wDlAun75x+ 9FrCL4LTb+OBqlYhZgBuQOF8I9U6IYmtXrpXyUOPOHlzVrFIcQu7pAJknAwNz8EGoGQT ZBBqI3PCtjlxgm2rMBuASENy3Khg0355I/UjmGoIxww6EF42pidJo33/KK6dZ883Oq3R fOug3VB4PWBnM2aKk7A94iYSj8e4lsg0Fkh21DK2AhCyd0/c2oQpXFnga7ryKXZM5WT3 1N5oZKoYrikLAkMZ0cPWZq4ZTXkszWQZlUIeRbplJ14hIE2TqPQxFFbXfcwou7N6eon9 eQew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ua+XLFVkxGEtJHLS8JJWGzHx2CaVmzegQtU1W4nLPfI=; b=qwSq4Ta70b3f27nu+Jx6nfUgQyiY+zqZHFhHgOBH3KpO2Ya/P8xJR33GJ64bWpz6vu /xRGXvHeZuGBZ6EqfJR7IDf9Fgg51YgFqahwPjt+y5P0FsKCy5VxCg3PA8f72zn66AAT bCIHvwzTr/DWpKJTsggFfDegLcEWJpaoiCZ9mgst2qShOPP99iHKU0dDf7JsJm5KwjvG pocaneeATAPKyl7d+8ctjxRZym6N0ZtzacgUVbPZRjEOWWOEbEBA0h33x1EouFPm8RB4 pbfZBoLu1HnK+RWpm4DnMqrzkLkz3jtwlqYzyuMUjVbRpMsWXYpwZSsZFsrK8T/1h+m7 jXPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1nIyA7AL; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m19si29916725pgu.445.2021.10.05.09.19.23; Tue, 05 Oct 2021 09:19:37 -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=@linuxfoundation.org header.s=korg header.b=1nIyA7AL; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236312AbhJEQTQ (ORCPT + 99 others); Tue, 5 Oct 2021 12:19:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:56168 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229488AbhJEQTQ (ORCPT ); Tue, 5 Oct 2021 12:19:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D77486137C; Tue, 5 Oct 2021 16:17:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633450645; bh=nQv7TJEC1TeCgBAiwKp27Mfu6BsaQKwTda6n316fuX8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=1nIyA7ALvDj7ddhUgoWPXH8vgwq94IAIJdqo1jbt9uBl8yB/kAUrjMkADZMnkeVXJ YF9olLZHFpkYLvizwAqn+4wt1vFvoqq1FhMLUGGTsQq+YQTs1OqFiBhzC/LdCvZPwH eNZ/cxOLnq544/4tcHA9JzvMfske7q6VX8tJSFOk= Date: Tue, 5 Oct 2021 18:17:23 +0200 From: Greg Kroah-Hartman To: Arnaud POULIQUEN Cc: Ohad Ben-Cohen , Bjorn Andersson , Jonathan Corbet , Mathieu Poirier , Jiri Slaby , Suman Anna , linux-stm32@st-md-mailman.stormreply.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org Subject: Re: [PATCH v8 2/2] tty: add rpmsg driver Message-ID: References: <20210930160520.19678-1-arnaud.pouliquen@foss.st.com> <20210930160520.19678-3-arnaud.pouliquen@foss.st.com> <4cfc7497-ac85-828b-0b2f-a212c5a0503c@foss.st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4cfc7497-ac85-828b-0b2f-a212c5a0503c@foss.st.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 05, 2021 at 06:03:25PM +0200, Arnaud POULIQUEN wrote: > Hello Greg, > > On 10/5/21 2:59 PM, Greg Kroah-Hartman wrote: > > On Thu, Sep 30, 2021 at 06:05:20PM +0200, Arnaud Pouliquen wrote: > >> This driver exposes a standard TTY interface on top of the rpmsg > >> framework through a rpmsg service. > >> > >> This driver supports multi-instances, offering a /dev/ttyRPMSGx entry > >> per rpmsg endpoint. > >> > >> Signed-off-by: Arnaud Pouliquen > >> --- > >> Documentation/serial/tty_rpmsg.rst | 15 ++ > >> drivers/tty/Kconfig | 9 + > >> drivers/tty/Makefile | 1 + > >> drivers/tty/rpmsg_tty.c | 275 +++++++++++++++++++++++++++++ > >> 4 files changed, 300 insertions(+) > >> create mode 100644 Documentation/serial/tty_rpmsg.rst > >> create mode 100644 drivers/tty/rpmsg_tty.c > >> > >> diff --git a/Documentation/serial/tty_rpmsg.rst b/Documentation/serial/tty_rpmsg.rst > >> new file mode 100644 > >> index 000000000000..b055107866c9 > >> --- /dev/null > >> +++ b/Documentation/serial/tty_rpmsg.rst > >> @@ -0,0 +1,15 @@ > >> +.. SPDX-License-Identifier: GPL-2.0 > >> + > >> +========= > >> +RPMsg TTY > >> +========= > >> + > >> +The rpmsg tty driver implements serial communication on the RPMsg bus to makes possible for > >> +user-space programs to send and receive rpmsg messages as a standard tty protocol. > >> + > >> +The remote processor can instantiate a new tty by requesting a "rpmsg-tty" RPMsg service. > >> + > >> +The "rpmsg-tty" service is directly used for data exchange. No flow control is implemented. > >> + > >> +Information related to the RPMsg and associated tty device is available in > >> +/sys/bus/rpmsg/devices/. > > > > > > Why is this file needed? Nothing references it, and this would be the > > only file in this directory. > > This file is created by the RPMsg framework, it allows to have information about > RPMsg endpoint addresses associated to the rpmsg tty service instance. > I can add this additional information to clarify the sentence. As you are not tying in this into the kernel documentation build at all, it makes no sense to add it. Just use normal kernel-doc comments in your .c file and tie _THAT_ into the kernel documentation build. No need for a .rst file at all. thanks, greg k-h