Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4435025pxb; Sun, 14 Feb 2021 10:10:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJx80Jk76quRsqG2MdE/wwda8jZVLWd83PBB5je2fURWrbWorPq//jz0DI9SoVQzBWrzmzm2 X-Received: by 2002:a17:906:3603:: with SMTP id q3mr11742219ejb.201.1613326253549; Sun, 14 Feb 2021 10:10:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613326253; cv=none; d=google.com; s=arc-20160816; b=i0LFvywrbJimVx+hfjMC7K2CoQaVQ3RreqNnFjd1pHxFCmmTT9ev0MK82Ixq7CpO+a Yyq6yjgrXaXqYUgyJHF/1/1Gh9EaZrM2py2mtQW2bwUvBmTsGzyQFPIfgDNYVWOv0cuV MbTKUvMNUvVp8/rDGVPy9ni56GRa062zondtq5TQnb90hgfoJIgcy2Yzgr8DsB0wryDL 4ZVX2dw5p+DFIfTMpkj4yZVU038VL0Ff7zpDRkNHvbS8RqwUIawtM0TpLUM03FSz5aTg 7MpyEJCa+HpAkpVVwEdt3LvYfsWg9H6ApComoXyvjhmQDhR2MJ5RQAJQPrdUmUBTyqUh mOZw== 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=HeRIz/hH61mFv2MrKEc4opjSt/RQ0ygpR4fTFRUhWfc=; b=oyQU8LUNLkhk68fTjY01BgZ6vhId9QXzxjEIOSzRJftTOtJZDH3CfbCy7k+ZyY4vf1 1twPAXbGlUMgiocZsDf49OJGNbSyqXLwZScEk3z/8Y5Z45PE1LZuZ2CBx8ln/OHBSag6 sJGVN3YdjOKZNXDAiOMMv/X8ahNvDEPCl22Uk0K8gBeUeVpl6IByGrGmWiD06t6bcAyc xLw8VIKGNSDKpgiC1MKhcgiZojBIFt24o82KLaDpo1aNtRWmhZ0I6ZxCMnkadNk+XqD/ HbhRCGxi4CNxfH1PtblFcwxGi/UfdkwClEWPJcWcOi6H2E/uszUimMskBZog/BUEF81R 0o/Q== 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 p26si10616588ejb.694.2021.02.14.10.10.29; Sun, 14 Feb 2021 10:10:53 -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 S229792AbhBNSKA (ORCPT + 99 others); Sun, 14 Feb 2021 13:10:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:55074 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229758AbhBNSJ7 (ORCPT ); Sun, 14 Feb 2021 13:09:59 -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 70D91600CF; Sun, 14 Feb 2021 18:09:16 +0000 (UTC) Date: Sun, 14 Feb 2021 18:09:13 +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: <20210214180913.05bd3498@archlinux> In-Reply-To: References: 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, 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. > +