Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1039047ybz; Wed, 29 Apr 2020 13:54:31 -0700 (PDT) X-Google-Smtp-Source: APiQypLatUK1H4Za2Mp5VRUIkQvkCnHjONonbbnfofLuuBYl+ALWsS0az+G7F1THtoaeSBCbvlAd X-Received: by 2002:a17:906:855a:: with SMTP id h26mr4613451ejy.56.1588193671249; Wed, 29 Apr 2020 13:54:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588193671; cv=none; d=google.com; s=arc-20160816; b=Px6jBHiePeCuvJs6GaN+T/LPtdFMmhNmyzgp1UL0TAXUihnXBt4uDF/AL1BY3N6ox3 /2KMG971xWcOjeFApDF0qLh/bdzOgabFwuv35FfdI992zeHHx2iD044OgvwDZ+q9H3bX 2ZbdRi5ytvh99D43349ySacE8SLqqft/L5GehbapXpmpBBldzZx+/48IM300h24HOFIc mUh100ZbEKb7P1CKCFPlGSF/PKxrIoqTKHHWKIIgmNCwMewXVgLtDJLP7NBDEr4hbiGu 47hQEaMJqcHnuMcuXFpRd+k4fWPfvHUT2LWNHE0YKNzL11+XmQb9qK36el2vjZYmRsOy TAMw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Y8MYBDFCYPC4U8pxIx3v4pRrJy5sBdcHs+qbfFFaKhU=; b=FWWr25PwDKLsWLjuYqQ5MYML78FnAUabI9se65ZQzMc9y9god3buMAfbSHGtq4qZ39 tviX9jpPUencR0wKasc/SRQ/IwNf7Jdary+tBJeUSCSVfYMRDF4K+KD3srtzpj+EWYkZ Vo/D2qA/nQ/+1yrUm/VU4zGF4xyrLphgUvSYwDJPrjFNTNdOZr3ndditjADC73A+GbW2 kjfIGsbmkHl0f3ZA3ft02RGJR0RYGr3WKJ3FsEHHh99ddZk82Ysj8dJagjooHe/rkl17 FXOYE1LYAV0G/9xnNljcAbVns4LnZSdJlAEHn35mkuLPH+QmNJTY90ylktCtQIfFYXT7 anhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=HTOA934A; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cm14si3890766edb.546.2020.04.29.13.54.06; Wed, 29 Apr 2020 13:54:31 -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=fail header.i=@lechnology.com header.s=default header.b=HTOA934A; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727086AbgD2UuB (ORCPT + 99 others); Wed, 29 Apr 2020 16:50:01 -0400 Received: from vern.gendns.com ([98.142.107.122]:59342 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726511AbgD2UuB (ORCPT ); Wed, 29 Apr 2020 16:50:01 -0400 X-Greylist: delayed 1724 seconds by postgrey-1.27 at vger.kernel.org; Wed, 29 Apr 2020 16:50:00 EDT DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Y8MYBDFCYPC4U8pxIx3v4pRrJy5sBdcHs+qbfFFaKhU=; b=HTOA934A6qy/XJhCXv7JieZkm9 VDL/VwsXQXfZKMgebwhoX79DwCe1dEyeNLemwXBIk8tM5mFwdDDYFvPECAQCzz75BADr6511h+kZm b8xC6rq+M3ApF0SyHRlkvEHJekU7J0f4DZ8eUQvE4QuZoVDF0ga3EBnACXPC9HY9MiFJVOENmdDtj V6tmcJNN1od8LGMdW7BZHbnD6DX6UdWZuMsTjoiZDME+RGH4YX2Cz59VwIWX2x2edHepq3assRPm5 7v+9TI4QaC6GTRJwyxxr7pBa0wkQ6YQmJFqwDC/WN7rMHSh9ev0BsCPqOzmnf/buNsVuHQbXNNHod d6QWNSXQ==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:40316 helo=[192.168.0.134]) by vern.gendns.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1jTtCd-0005BN-Mc; Wed, 29 Apr 2020 16:21:07 -0400 Subject: Re: [PATCH 0/4] Introduce the Counter character device interface To: William Breathitt Gray , jic23@kernel.org Cc: kamel.bouhara@bootlin.com, gwendal@chromium.org, alexandre.belloni@bootlin.com, felipe.balbi@linux.intel.com, fabien.lahoudere@collabora.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, 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 References: From: David Lechner Message-ID: Date: Wed, 29 Apr 2020 15:21:05 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/29/20 1:11 PM, William Breathitt Gray wrote: > Over the past couple years we have noticed some shortcomings with the > Counter sysfs interface. Although useful in the majority of situations, > there are certain use-cases where interacting through sysfs attributes > can become cumbersome and inefficient. A desire to support more advanced > functionality such as timestamps, multi-axis positioning tables, and > other such latency-sensitive applications, has motivated a reevaluation > of the Counter subsystem. I believe a character device interface will be > helpful for this more niche area of counter device use. Nice to see some progress being made. :-) > > Interaction with Counter character devices occurs via ioctl commands. > This allows userspace applications to access and set counter data using > native C datatypes rather than working through string translations. For most aspects of the counter subsystem, this is not an issue since configuring a counter is not a time-sensitive operation. Instead of ioctls, I was expecting to just be able to read the character device and receive counter events or poll to wait for events similar to how the input subsystem works or how buffers work in the iio subsystem. I'm afraid I don't really see much use in having ioctls that do exactly what sysfs already does. And my intuition tells me that the extra work needed to maintain it will probably cost more than any benefit gained. (Maybe other have a different experience that leads to a different conclusion?)