Received: by 10.213.65.68 with SMTP id h4csp1358375imn; Sat, 24 Mar 2018 10:29:17 -0700 (PDT) X-Google-Smtp-Source: AG47ELsotualLOkg2WxtHbz9BzbdttZ6GFjS9NeZXMgBz3269FcJh2rzR0NgANRsfUiqLilGVEAz X-Received: by 2002:a17:902:5388:: with SMTP id c8-v6mr23239842pli.90.1521912556999; Sat, 24 Mar 2018 10:29:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521912556; cv=none; d=google.com; s=arc-20160816; b=wvkNXrG39W1qJEts64OIv+CP6kJYbVFtBh9UyNCj998BYqfTmie/Cq/0hY2gFCTxQx hwLFolxdoMGcU5M0l9AimagJV2fyolK2ivPRhV6IncA5uJfe6Jqxkk+u/U2kBU6NM66h i4xrLt1DlQTWmLYVLEihNzekRzs781Yz+gMhz/h6txQ7VPsOOaz6e8ne13as9c4aY3X0 H7Ecu1+eWwRVfjaWPssUfiFvcv+s+RJlatUxdnfu43h6lBKU1K7d9pbsYpdgKOE9MAXk YicCIz8R7ecObs0A3phoXujHmkaahkCuOHj5LBLR3JHx5lgsWAOobsaaV8wmpSj3WbCC YkrQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dmarc-filter:arc-authentication-results; bh=dlFKoRhSqONGxqaMPz/adIhUsDbSvHq2qKJb758xvlE=; b=kBzGoxrGIPqciiK20w5JUBL9mlewUVSq+ThBnMp+EdSBRWSjfkuqi+uMpz36nPdhff Q/LKP31kzAKuUM6HR1+Xh6UU0PQpIDOJJltQOa6MXAk6gPPCu8cyQpHlls8asX5NdIOM X+gC8Fg/lpdf3rBjSqX258pEWq3iGZD/63F6PmSaJjsPvFw41uMOohZ+fNqtbkNConwB NLPlIHyCAnWTFl/szqEqa1smj/rEfOYxqk3r0CMhCLfXS+u0wqrycktGEf8eOkjnE4VK AH6ZjxaLa0DY3Wd12luE7aWJVQJYQPKgzS73A6NGaUklaahSWJxOZHmNI+PCAO+8bKKF veZQ== 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 92-v6si11064066plw.229.2018.03.24.10.29.01; Sat, 24 Mar 2018 10:29:16 -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 S1752728AbeCXR2E (ORCPT + 99 others); Sat, 24 Mar 2018 13:28:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:39204 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752705AbeCXR2C (ORCPT ); Sat, 24 Mar 2018 13:28:02 -0400 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id ACD662177B; Sat, 24 Mar 2018 17:28:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ACD662177B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=jic23@kernel.org Date: Sat, 24 Mar 2018 17:27:57 +0000 From: Jonathan Cameron To: William Breathitt Gray Cc: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, benjamin.gaignard@st.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 7/8] counter: stm32-timer-cnt: Add sysfs documentation Message-ID: <20180324172757.5350649c@archlinux> In-Reply-To: References: X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 9 Mar 2018 13:43:44 -0500 William Breathitt Gray wrote: > From: Benjamin Gaignard > > In addition of the generic sysfs-bus-counter ABI stm32-timer-cnt > offerts three functionality: > - enable the counter > - set preset value > - allow to read counter direction > > Signed-off-by: Benjamin Gaignard > Signed-off-by: William Breathitt Gray My main thought here is that there is nothing which doesn't belong in sysfs-bus-counter to my mind anyway. Jonathan > --- > .../ABI/testing/sysfs-bus-counter-stm32-timer-cnt | 21 +++++++++++++++++++++ > 1 file changed, 21 insertions(+) > create mode 100644 Documentation/ABI/testing/sysfs-bus-counter-stm32-timer-cnt > > diff --git a/Documentation/ABI/testing/sysfs-bus-counter-stm32-timer-cnt b/Documentation/ABI/testing/sysfs-bus-counter-stm32-timer-cnt > new file mode 100644 > index 000000000000..73328e8e6d7e > --- /dev/null > +++ b/Documentation/ABI/testing/sysfs-bus-counter-stm32-timer-cnt > @@ -0,0 +1,21 @@ > +What: /sys/bus/counter/devices/counterX/countY_direction > +KernelVersion: 4.17 > +Contact: linux-iio@vger.kernel.org > +Description: > + Read-only attribute that indicates the count direction of > + Count Y. Two count directions are available: Forward and > + Backward. Given both existing devices have this, I'm guessing it is generic enough to graduate to the generic sysfs documentation file. > + > +What: /sys/bus/counter/devices/counterX/countY_enable > +KernelVersion: 4.17 > +Contact: linux-iio@vger.kernel.org > +Description: > + Whether channel Y inputs A and B are enabled. Valid attribute > + values are boolean. Given for the previous device we had individual inputs (which to my mind made no sense to disable separately) perhaps we should have this as the generic option. If a driver needs to separately disable the two signals then that is up to it to sort out. At least this way we reduce the guessing any userspace code will need to do in order to turns things on. > + > +What: /sys/bus/counter/devices/counterX/countY_preset > +KernelVersion: 4.17 > +Contact: linux-iio@vger.kernel.org > +Description: > + If the counter device supports preset registers, the preset > + count for channel Y is provided by this attribute. Again, looks pretty generic...