Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1056244imc; Mon, 11 Mar 2019 05:37:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGfz4o61XYLZ91lNB1Zl1QmS8GtOb5CSpwJEZo3dfNfcJoC1QcX9+JADIFeuKOmYo3BdcM X-Received: by 2002:a62:11c6:: with SMTP id 67mr32588257pfr.68.1552307852704; Mon, 11 Mar 2019 05:37:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552307852; cv=none; d=google.com; s=arc-20160816; b=MZn6BTxIHEniMhL34fuwK895+z1rsdxjrROYhlntJMCDleWQ26iCvcnfbTys3SS1iw 0eeXRuGWzPLFdr9HCiIDFe+idMB+NciT4QmtweDlkPBwrAPrEelm+CcVBz51NxsjEx6N 1FxYgMxC2NvSNkx7xlT3Ud1mep8lW7U2Hys/d6gs6l27qqYnrKa1zbr33ILs48Hj7kSJ HTF1uMoiO4aQQFqsk9FSie18ERNrPcY26G1fp+pb1t5Yqb9aB1s+GAIDnBuYMzy4E8W9 hMnP1CXvuf6sZrBleZmBzj29VZ6scz+JWD3O26zffHqED6kwBWR5QnVD9RO2/4HzYGYk HZqA== 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=Z6Mm/sopVSEZm+iohNaZD/7AY6QLaPUndyNgNEZUBKE=; b=no5pMbg5d7kSVAk/m664qnLurgGI149ec3F//NIhk3Upo7NtrEB8yahRYDMVUsiX0R gO+raJcYtESQmN3d/UMm1uAgjh0M7IoC96gv55uWIQ8w4WiKsusbKUjfnIYrybh/lorP q2kW+rTUnr+K5RLHazyUzUQ3Y78XQclHih/iBSVGHFf1vFI71t5926IDpQdyDuSW40no h3pMwEvY+xXG8rGUHztQaVhysVPfGvHK6rw5xWl793rYc/RQaNQToeDF+JvcBalNeorp VR2ysBzrQ01EzEqddH8FLfzxuHjKzG2QeNpb0YoNmntxnrUEe9U/Q6WBWevnZf0/W1em UBFg== 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 d12si5548541pla.80.2019.03.11.05.37.13; Mon, 11 Mar 2019 05:37:32 -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 S1727331AbfCKMgq (ORCPT + 99 others); Mon, 11 Mar 2019 08:36:46 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:4669 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726812AbfCKMgq (ORCPT ); Mon, 11 Mar 2019 08:36:46 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id BE2F7D2A7C75A6322EBB; Mon, 11 Mar 2019 20:36:42 +0800 (CST) Received: from localhost (10.202.226.61) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.408.0; Mon, 11 Mar 2019 20:36:40 +0800 Date: Mon, 11 Mar 2019 12:36:26 +0000 From: Jonathan Cameron To: William Breathitt Gray CC: Patrick Havelange , Rob Herring , Mark Rutland , Shawn Guo , Li Yang , Daniel Lezcano , Thomas Gleixner , "Thierry Reding" , Esben Haabendal , , , , , , , "Jonathan Cameron" Subject: Re: [PATCH v2 6/7] counter: ftm-quaddec: Documentation: Add specific counter sysfs documentation Message-ID: <20190311123626.00004f70@huawei.com> In-Reply-To: <20190307114216.GB7851@icarus> References: <20190306111208.7454-1-patrick.havelange@essensium.com> <20190306111208.7454-7-patrick.havelange@essensium.com> <20190307114216.GB7851@icarus> Organization: Huawei X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.226.61] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 7 Mar 2019 20:42:16 +0900 William Breathitt Gray wrote: > On Wed, Mar 06, 2019 at 12:12:07PM +0100, Patrick Havelange wrote: > > This adds documentation for the specific prescaler entry. > > > > Signed-off-by: Patrick Havelange > > --- > > Changes v2 > > - Add doc for prescaler entry > > --- > > .../ABI/testing/sysfs-bus-counter-ftm-quaddec | 16 ++++++++++++++++ > > 1 file changed, 16 insertions(+) > > create mode 100644 Documentation/ABI/testing/sysfs-bus-counter-ftm-quaddec > > > > diff --git a/Documentation/ABI/testing/sysfs-bus-counter-ftm-quaddec b/Documentation/ABI/testing/sysfs-bus-counter-ftm-quaddec > > new file mode 100644 > > index 000000000000..2da629d6d485 > > --- /dev/null > > +++ b/Documentation/ABI/testing/sysfs-bus-counter-ftm-quaddec > > @@ -0,0 +1,16 @@ > > +What: /sys/bus/counter/devices/counterX/countY/prescaler_available > > +KernelVersion: 5.1 > > +Contact: linux-iio@vger.kernel.org > > +Description: > > + Discrete set of available values for the respective Count Y > > + configuration are listed in this file. Values are delimited by > > + newline characters. > > + > > +What: /sys/bus/counter/devices/counterX/countY/prescaler > > +KernelVersion: 5.1 > > +Contact: linux-iio@vger.kernel.org > > +Description: > > + Configure the prescaler value associated with Count Y. > > + On the FlexTimer, the counter clock source passes through a > > + prescaler that is a 7-bit counter. This acts like a clock > > + divider. > > -- > > 2.19.1 > > Hmm, prescalers seem common enough among counter devices to permit these > attributes to be listed in the sysfs-bus-counter documentation file. > However, I'd like to wait until we get another counter driver for a > device with a prescaler before we make that move. From there, we'll have > a better vantage point to determine a fitting standard prescaler > attribute behavior. > > So for now, we'll keep these attributes documented here in the > sysfs-bus-counter-ftm-quaddec file, until the time comes to broach the > discussion again. Agreed. As long as the definition is sufficiently non-specific so it can be moved later. I'm not sure for example that the docs need to say that it is a 7 bit counter. That should be apparent from prescaler_available - or at least possible values should be which is all we need to know. Jonathan > > William Breathitt Gray