Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp865479ybt; Wed, 1 Jul 2020 11:56:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPlZzfCgUn0akZxZXrrIPlGpfVSQCWKILPfZLNDT1Vst/fW/4FIAZ7UOa5+6HuNTnmzJ+/ X-Received: by 2002:a05:6402:174e:: with SMTP id v14mr16186930edx.153.1593629813890; Wed, 01 Jul 2020 11:56:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593629813; cv=none; d=google.com; s=arc-20160816; b=IYBpA2x7OjbMbr+XOWpTLNLyVA5tmdJGpjdPEY3nQFL4LUrrOL3hA8IHFzxkh2kfXe qWzFCWIXOddJvnPsfiYwerAXKYQAmqPNNZdk0RoUmCKTarCA5AHVi9eu0AKsvKgcCl4u BJV0sVP+LaB/eIcHL7WUu09RIjcuNaD4Q5SuqWe/QIkdKpjumcJcrtHFAj6SRt+MwGQo TjIWvIWXdouVXhPNAHM/wFIfuN3yZbDt/u6ZuFfrQ0MY35keZFlgHeP+anxdYNtpZCrk NCPLFvtyoY7cKm3V6faDtL5sIPL8drSRQ8gpbwi+OTa+FsMJ1hD9B6DY66Zl0ydVBS9Z PprQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=N8mdJZc20bx/fo0pg63xpTRYXUKZHJBXG1PEyR4+fF8=; b=Ysk1V+UygYpxS7yCwecF++bJ77GgRLT/36MMA53nb2pJzfdCxGLHOZWOWRjdRo/GD+ s6lQmW0UUBRzOPsGHrCMFyggWxGWWNDigdMA5aJg47C+vHzJA9tRj78OFuyEaKdw8XiV 4MNaAjMber7uXePY7v+elZCrwgMo+3TKeMyJMuMg6TFNLnB62sv1KOJ+e7G8gkDzNBEY 0hf8EmAADvsiQueJXs/tE6ALz14B2SvC3o5CfYefbh5mwj4mUTd5qOOisX8wsi05izc5 wpVVQPhfXqEeBRBoWqWY9NG5ncfA9OiQNq0ITUcug1tS2W0ootXWnSL/Vhtly1cLj/2g 8P3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KVveur8E; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g15si4040164edm.229.2020.07.01.11.56.30; Wed, 01 Jul 2020 11:56:53 -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=@linaro.org header.s=google header.b=KVveur8E; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726365AbgGASzu (ORCPT + 99 others); Wed, 1 Jul 2020 14:55:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726159AbgGASzt (ORCPT ); Wed, 1 Jul 2020 14:55:49 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C72EC08C5DD for ; Wed, 1 Jul 2020 11:55:49 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id d10so10261271pls.5 for ; Wed, 01 Jul 2020 11:55:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=N8mdJZc20bx/fo0pg63xpTRYXUKZHJBXG1PEyR4+fF8=; b=KVveur8EaYo8GE1wia+o8Y3IIX9L9nTBR6YT5+trww3t8t7wxav7kgIDZovilOumRr HW1ddoUkGgxnQarE0l7P10JCDtquNMmxMwGVpqLCVa9ZPJ8OIxvDBWgQRV443iRhaKg/ I4iWZSlSyyffQ0LyxumOEIJ29YAtSHfajWvK0He66pVz+lmOmkJbOikdNkntSQsAUI3Q E6zrpJukuD2MNgvw2fPC5vtnbDs7+80Z+jIAwwfQaZSY7jmd+kbWta6pNzpGOCOWCTgH UvTX1qaknjob6BYi8l2x4kKhRpmnTGsg81iQfj5ZjLDY9jUretjjbBj9Ry1Kj00I/ZZq Tf1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=N8mdJZc20bx/fo0pg63xpTRYXUKZHJBXG1PEyR4+fF8=; b=uHp+B3rHa4W37P6Br8GeeVv8MHXt2zgYFKlYBZXD6VB1EPbGWxMLEXqzLuX/7BGhqG 4qJzyf6jV8WRL/PXQ0T4Xl0xZ/JGlA/jx4TIhBvVm41J0Y7vbRFp/7E7t7LsAFdAS9/n U37CLPP9f6AZvgrXExHLNHlcWTFhJYou9D5jl5B6k7BhGpRa/twRvpL8SIsNLTMQXzJL D5ov3J2ASvxAD26g0/6HqXh5ml01sHp9gpsbvMy+dVJf4dlB9iRkmHGZMwUQJAdD5zaC jF7pmG5czc7IfypJkOtF8DvSM8Yd/UrV4IcbH5gzRGswKOG3JiyZWdtF9fjApMbVOEut 8R/Q== X-Gm-Message-State: AOAM532LXxSC1byl8yxVvQgYKwPvA5RdDNoXdqReM6uQA+juH3T3SMrX vaaXHRDsp4Vs4MERmlqzlOdgGQ== X-Received: by 2002:a17:90a:354d:: with SMTP id q71mr30489874pjb.216.1593629748050; Wed, 01 Jul 2020 11:55:48 -0700 (PDT) Received: from builder.lan (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id g18sm6613164pfk.40.2020.07.01.11.55.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2020 11:55:47 -0700 (PDT) Date: Wed, 1 Jul 2020 11:53:18 -0700 From: Bjorn Andersson To: Arnaud POULIQUEN Cc: Siddharth Gupta , "rishabhb@codeaurora.org" , "linux-remoteproc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "mathieu.poirier@linaro.org" , "ohad@wizery.com" , "tsoni@codeaurora.org" , "psodagud@codeaurora.org" , "linux-remoteproc-owner@vger.kernel.org" Subject: Re: [PATCH v3 1/2] remoteproc: Add remoteproc character device interface Message-ID: <20200701185318.GA950397@builder.lan> References: <1587492618-15896-1-git-send-email-rishabhb@codeaurora.org> <1587492618-15896-2-git-send-email-rishabhb@codeaurora.org> <3738198d-53d4-2fe6-a92b-2db0cd0afa68@st.com> <83c70517-32e4-9ce0-e1b4-2ed7a8b5c506@codeaurora.org> <94541ff3-ba34-3a08-f989-6e1a0a88fbf2@st.com> <275e39c4-0e0b-8ca2-ae0b-d0d435cfc720@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <275e39c4-0e0b-8ca2-ae0b-d0d435cfc720@st.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 01 Jul 05:13 PDT 2020, Arnaud POULIQUEN wrote: > > > On 7/1/20 12:02 AM, Siddharth Gupta wrote: > > > > On 6/30/2020 12:43 AM, Arnaud POULIQUEN wrote: > >> > >> On 6/30/20 7:38 AM, Siddharth Gupta wrote: > >>> On 6/17/2020 1:44 AM, Arnaud POULIQUEN wrote: > >>>> On 6/16/20 9:56 PM, rishabhb@codeaurora.org wrote: > >>>>> On 2020-04-30 01:30, Arnaud POULIQUEN wrote: [..] > >>>>>> IOCTLs should probaly be documented. > >>>>> I have added documentation to > >>>>> Documentation/userspace-api/ioctl/ioctl-number.rst > >>>>> Is there another place where I need to add documentation for this? > >>>> Could you add in this file comments that describe > >>>> the IOCTL usage and associated parameter? > >>>> > >>>> Regards, > >>>> Arnaud > > > > I don't see any for of comments that describe in detail the IOCTL usage, > > i.e., > > input parameters, etc. Could you provide an example so I can follow it? > > > > If not, should I instead put them in Documentation/remoteproc.txt? > > Bjorn and Mathieu are the right persons to decide on the best place. > > Here are 2 exemples of "inline" documented IOCTRLs. > > https://elixir.bootlin.com/linux/latest/source/arch/s390/include/uapi/asm/tape390.h#L15 > https://elixir.bootlin.com/linux/latest/source/drivers/net/wan/cosa.h#L63 > > Could be something like that: > > /* > * The RPROC_SET_SHUTDOWN_ON_RELEASE ioctl allows to enable/disable the > * automatic remote processors shutdown when the controlling userpsace > * closes the char device interface. > * > * input parameter: integer > * 0 : disable automatic shutdown > * other: enable automatic shutdown > */ > #define RPROC_SET_SHUTDOWN_ON_RELEASE _IOW(RPROC_MAGIC, 1, int) > > /* > * The RPROC_GET_SHUTDOWN_ON_RELEASE ioctl gets information about the > * automatic remote processors shutdown when the controlling userpsace > * closes the char device interface. > * > * output parameter: integer > * 0: automatic shutdown disable > * 1: automatic shutdown enable > */ > #define RPROC_GET_SHUTDOWN_ON_RELEASE _IOR(RPROC_MAGIC, 2, int) > I like this. Thanks for digging up an example Arnaud! Regards, Bjorn