Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp950880pxb; Sun, 21 Feb 2021 06:10:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJyzUKS01ByX2w5sh81ARzvUIbxs3qErAExoqI/ovY/vLdCpPIkcm4D1jC0JTESR0OOgomYH X-Received: by 2002:a17:906:2803:: with SMTP id r3mr16857016ejc.50.1613916618398; Sun, 21 Feb 2021 06:10:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613916618; cv=none; d=google.com; s=arc-20160816; b=gVdtYOrJ3ugaCNNdc1zGFLS+WXkcpygk3uCY0ClrnSJ7cQ3SlrRIyc2bvRMdC4/YTG h3Q1ZwECWkwGxdZKce9uvsTvk7JOwsLCWPOn5n3syDvZRGHM9QIkOD9n0m2uicPib4zC W4c3CdXKi8t2zPPiea+VtVuHpoOZCO5cahkjS/kFFDxfvyX9EyIGBU0gNETRhCwbescC ZITUbxu384C6Eb/fQqbj760rlcVO24Ki2uANuBN8ynzFDvnsf8chS/61H+kq+k8dKIpD P2sNTImwdJBGos3P9Hp11F0za/4d1SqcWGKRhx9foz6iwFat8dGWrNZ6ZlJSFEXNNJRj UPmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=7H1iIY1plPVXHiGortDK7b8ejCZXbEQK2+OPU9jU0lM=; b=Rag8HD8BGertwT7/f7e5XtqjgIou5KxcBG5YZv5dGxybrmRooFzF4AUbFSbkaHs2ae Vf69jNs9YP0gzCbDMbcEW5Hpcf2R6EGbA6hpSWtm7aAWn1s6M8cRt1htjo/PdhwDpCFf Q9ypfkxv0oVtSBoCKZbmhP5SbRIGH18FImTHUYumcON4fSZRS6lRckXr0UWpUYbdTYms dywA1IB7dM4A6oWcoFdPkLjd7kWkHMXvBqwJ6fr/bqVdb+kKOyeT9JF+Ut+31OgZiIhL yDZy1YSpIcN7Zr0blhBGFWG09UiRfM2Ic3pR04EeVZPAao/PgL/FsVl7Kx3krepQ2GAR kbmg== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c26si10569196edx.566.2021.02.21.06.09.55; Sun, 21 Feb 2021 06:10:18 -0800 (PST) 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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229952AbhBUOF6 (ORCPT + 99 others); Sun, 21 Feb 2021 09:05:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:52942 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229945AbhBUOFy (ORCPT ); Sun, 21 Feb 2021 09:05:54 -0500 Received: from archlinux (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (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 0315061481; Sun, 21 Feb 2021 14:05:10 +0000 (UTC) Date: Sun, 21 Feb 2021 14:05:07 +0000 From: Jonathan Cameron To: William Breathitt Gray Cc: kernel@pengutronix.de, linux-stm32@st-md-mailman.stormreply.com, a.fatoum@pengutronix.de, kamel.bouhara@bootlin.com, gwendal@chromium.org, alexandre.belloni@bootlin.com, david@lechnology.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, syednwaris@gmail.com, patrick.havelange@essensium.com, fabrice.gasnier@st.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, o.rempel@pengutronix.de, Dan Carpenter Subject: Re: [PATCH v8 19/22] counter: Implement extension*_name sysfs attributes Message-ID: <20210221140507.0a5ef57f@archlinux> In-Reply-To: References: <20210214180913.05bd3498@archlinux> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 19 Feb 2021 17:51:37 +0900 William Breathitt Gray wrote: > On Sun, Feb 14, 2021 at 06:09:13PM +0000, Jonathan Cameron wrote: > > On Fri, 12 Feb 2021 21:13:43 +0900 > > William Breathitt Gray wrote: > > > > > The Generic Counter chrdev interface expects users to supply extension > > > IDs in order to select extensions for requests. In order for users to > > > know what extension ID belongs to which extension this information must > > > be exposed. The extension*_name attribute provides a way for users to > > > discover what extension ID belongs to which extension by reading the > > > respective extension name for an extension ID. > > > > > > Cc: David Lechner > > > Cc: Gwendal Grignou > > > Cc: Dan Carpenter > > > Signed-off-by: William Breathitt Gray > > > --- > > > Documentation/ABI/testing/sysfs-bus-counter | 9 ++++ > > > drivers/counter/counter-sysfs.c | 51 +++++++++++++++++---- > > > 2 files changed, 50 insertions(+), 10 deletions(-) > > > > > > diff --git a/Documentation/ABI/testing/sysfs-bus-counter b/Documentation/ABI/testing/sysfs-bus-counter > > > index 6353f0a2f8f8..847e96f19d19 100644 > > > --- a/Documentation/ABI/testing/sysfs-bus-counter > > > +++ b/Documentation/ABI/testing/sysfs-bus-counter > > > @@ -100,6 +100,15 @@ Description: > > > Read-only attribute that indicates whether excessive noise is > > > present at the channel Y counter inputs. > > > > > > +What: /sys/bus/counter/devices/counterX/countY/extensionZ_name > > > +What: /sys/bus/counter/devices/counterX/extensionZ_name > > > +What: /sys/bus/counter/devices/counterX/signalY/extensionZ_name > > > +KernelVersion: 5.13 > > > +Contact: linux-iio@vger.kernel.org > > > +Description: > > > + Read-only attribute that indicates the component name of > > > + Extension Z. > > > > Good to say what form this takes. > > Do you mean a description like this: "Read-only string attribute that > indicates the component name of Extension Z"? My expectation would be that the possible strings are tightly constrained (perhaps via review). So I'd like to see what they are and a brief description of what each one means. Jonathan > > William Breathitt Gray