Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5837903pxv; Wed, 28 Jul 2021 22:57:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6Y7J2Gm6HY05pv1jwmzD2ge0sOmlkrUxto4ZUi3RvU9e18JN6kuE3+rec6D0dGhI+e7mS X-Received: by 2002:a17:906:c08e:: with SMTP id f14mr2961727ejz.380.1627538229085; Wed, 28 Jul 2021 22:57:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627538229; cv=none; d=google.com; s=arc-20160816; b=0yUMNCuXmiRs0tHQ1/DnOllv2XHs11uz4pn0YMrQc6N7IB1LDnxLBQYqwWyqLMKf0/ W+nBctkHH7/72vG8clNQztcJiTjZ9d5vqvZMjBt5Irhg1thZr2shN9lGyueNrXfZca3b 2Sb+R062yS/6KFytU3s5JFIvjPvomd/HwsHqR0OI0FDHfavpk7Jqdo5HVWu/AXX4kwGQ t0uIg2ueCm5McSW4WpI89rBHGzf4BgAeyShxYUnLXT2KTLcoOB+Gx8ePFh8MR/TYxRNz fNadIiIc/C6N3JzxxJT/AIUmfG0VUg92P8S5raQq1IW7tYIt9iUD9GWHknlxpMbR9uqk eyvw== 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=0LnypN6vlotPJokh/YC005dWSg4Pb6ZCx5u0XvAM4Qo=; b=FVkAk19bh8cdzj0pOvhi1DW9Lirj8nR2U+4FuQCzWFFy9NbgHmmlQWYsYhRW1ueL3q MdYxhFVUM5qulG8CCgVG9SMwB3BNaSkOhs0rxZXhbTz5k5m6G54KUDUok4wKCr+1M6Oo HG3sv991piC8iZpqXgt9neZMiTuV+ewJe3/Oq/t9t9rrrSyi2i+p/GunPbmq+HJgm711 Poww5b5PIFrMFaz44dDLbXXsta6PsQL5rppJ4js0vq48OTEi+notkslFseEXhPkIsarv 8zYn5OztNjdgUuEgYMISbptblod6Me3xSiYESV5CJVDu4MwfeuzHXCpa3HBRtAJce6lr VIjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jBBKp0xb; 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 k15si1948595eds.12.2021.07.28.22.56.45; Wed, 28 Jul 2021 22:57:09 -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=jBBKp0xb; 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 S234089AbhG2Fx0 (ORCPT + 99 others); Thu, 29 Jul 2021 01:53:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:59034 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233739AbhG2FxZ (ORCPT ); Thu, 29 Jul 2021 01:53:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C210F60C51; Thu, 29 Jul 2021 05:53:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627538002; bh=ndPuKMgqpIbhmriDtRgAwJR0/HGvhnXHJhwddEWsuSI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jBBKp0xb5ULry4DVjTYZWx9gHV0P3v7/rQpUe+oyFU9StOQ6efu0uZnFFssdytP8C S9LT+ayF86lLNN1dNCgxkiplAQj8rAQU2JFcI4XHNMiS93FokimrSlv4y21ac5ZIyg /z8XWXycUbOKrN5vtpfhdLD4lVwS2DyZdqw+t6AE= Date: Thu, 29 Jul 2021 07:53:17 +0200 From: Greg KH To: Ian Pilcher Cc: linux-block@vger.kernel.org, linux-leds@vger.kernel.org, axboe@kernel.dk, linux-kernel@vger.kernel.org, pavel@ucw.cz, kernelnewbies@kernelnewbies.org Subject: Re: [RFC PATCH 1/8] docs: Add block device LED trigger documentation Message-ID: References: <20210729015344.3366750-1-arequipeno@gmail.com> <20210729015344.3366750-2-arequipeno@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210729015344.3366750-2-arequipeno@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 28, 2021 at 08:53:37PM -0500, Ian Pilcher wrote: > * Document the sysfs attributes (/sys/class/block/led_trigger_* > and /sys/class/block/${DEV}/led_trigger) that can be used to > create, list, and delete block device LED triggers and to > set and clear device/trigger associations. sysfs apis belong in Documentation/ABI/ like all other entries. > > * Pull API documentation from block/blk-ledtrig.c (once it > exists). > > Signed-off-by: Ian Pilcher > --- > Documentation/block/index.rst | 1 + > Documentation/block/led-triggers.rst | 124 +++++++++++++++++++++++++++ > 2 files changed, 125 insertions(+) > create mode 100644 Documentation/block/led-triggers.rst > > diff --git a/Documentation/block/index.rst b/Documentation/block/index.rst > index 86dcf7159f99..a125ecdb4c7b 100644 > --- a/Documentation/block/index.rst > +++ b/Documentation/block/index.rst > @@ -25,3 +25,4 @@ Block > stat > switching-sched > writeback_cache_control > + led-triggers > diff --git a/Documentation/block/led-triggers.rst b/Documentation/block/led-triggers.rst > new file mode 100644 > index 000000000000..a67e06c68073 > --- /dev/null > +++ b/Documentation/block/led-triggers.rst > @@ -0,0 +1,124 @@ > +.. SPDX-License-Identifier: GPL-2.0 > + > +============ > +LED Triggers > +============ > + > +Available when ``CONFIG_BLK_LED_TRIGGERS=y``. > + > +sysfs interface > +=============== > + > +Create a new block device LED trigger:: > + > + # echo foo > /sys/class/block/led_trigger_new > + > +The name must be unique among all LED triggers (not just block device LED > +triggers). > + > +Create two more:: > + > + # echo bar baz > /sys/class/block/led_trigger_new > + > +List the triggers:: > + > + # cat /sys/class/block/led_trigger_list > + baz: 0 > + bar: 0 > + foo: 0 As was pointed out, this is not ok for a sysfs file, sorry. thanks, greg k-h