Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp332335imm; Mon, 21 May 2018 06:49:21 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpUPyYhp1aogDh/GeBuYCsPU18teIJ/T+i2YB/tEqnA+Hvm5EwQGBuLPygZUbe0Rs40z24R X-Received: by 2002:a17:902:8c81:: with SMTP id t1-v6mr20241045plo.310.1526910561615; Mon, 21 May 2018 06:49:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526910561; cv=none; d=google.com; s=arc-20160816; b=bJZwKP4GDowtXkOXFIK+z6O6sIWpdk5oEnj5cQNpOFOU0DAwoNzi4Bo0iS5xYxmjKf Tpc/M5VpA7JqcXKLd+r5v0rLOkL+6PXf1kEwz059wSfUqTRVRhHagXuwIzRIyDxUjEAg rBH/dqPluCGynfQh5b8C3Sk/S7PNAlPA4mr5Rr4RDls5v95eDmSqwlqmRmHsZXPepn24 CiPiW14FvBrRZQFMuUPlkhCiT6qaM6gJ1KRBS9BtPnM2JK+3t4yPMDDiwSIvERimYsAo jH+B9nRrHdqGe2TA+LFdRYnzkq4/I6zgxI8bz7eAy9exwlRyYjdzZes/zGre+SIx9i72 Hq5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=TKv/6b4z1yaxMMrhB/o2bsgNG9ev0NOahK0I960qgWw=; b=AWsL6iiSZFaDUgB2crMZXUBU2Mr0yzh95dq4ReVhICZBPm3YBVrOrUFnxo0uo5sAtD uXf4SB34b8emdbaCK/pnrnf5D3oBLxtbDn3wQ62V5drOwdxFi5Gocp12yleWwaI+JRe+ lDyBN0knPod603dH2Tx/ZERvgJgqVprRe1uFA8p1UxmGevtPBV336ye0q9X6m+KvXGzX DthYySs7BfH0kz8PiUGxSFKnZ6PxxaCblDsGkgBf9hTGG8+ZlpHMTfC17tUFT5EScxZM MwnX1rxqAJD853nkGtCo3dyqhDhmNZ/tNx88WLh3qcg3RDb7wmd+N/bVEECEyJ9vfFRM KkNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hUetMpZ7; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c6-v6si14183396plo.88.2018.05.21.06.49.06; Mon, 21 May 2018 06:49:21 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hUetMpZ7; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752754AbeEUNrj (ORCPT + 99 others); Mon, 21 May 2018 09:47:39 -0400 Received: from mail-yb0-f194.google.com ([209.85.213.194]:45991 "EHLO mail-yb0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751145AbeEUNre (ORCPT ); Mon, 21 May 2018 09:47:34 -0400 Received: by mail-yb0-f194.google.com with SMTP id r13-v6so5063258ybm.12; Mon, 21 May 2018 06:47:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=TKv/6b4z1yaxMMrhB/o2bsgNG9ev0NOahK0I960qgWw=; b=hUetMpZ7Y2Pw4DtCbMRHhEuIR33WqlWKg2xYQFX+qrk2TUf3zgctvM2JotA49OOQ6k f7kQTB72wsIg9Ezkz9EB4rT4weV2blPkD+HdpkqMEYaTkpvIVUXAVTv7RSMxTUm54lpv aDcQgX3yR/vln8TvM77AEqDG71n0NsReBQs9l5EKTAv8j4RBAhiZV0eSYS5GNlkJN3Av iA7c0YbqR+kgovYsNhQehJP07YPDT6TVq+TasHbfi9SCPozdvHZNKgKfJBwEF4hXRo8+ Ye1dJfPEqbMY6E7ScCddtEfJO+UDZOrdXRddT3jKTACxfXr+RcENRuVss510+/DHGopZ OrBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=TKv/6b4z1yaxMMrhB/o2bsgNG9ev0NOahK0I960qgWw=; b=XSBFyXlW9GVgaMGadJCHntrhWULM2iVJLPmS6jOFyHEn/kUiQGoU+jydIrJSbaTkUq U6r/yeAfFh09xWcztb2+2kjN75vyWZcl8w+dOnfr3fczbGa56Sd7j6bmlHe5RIhWmfby Uq1dB/RtgAtLc4u3j8fU8i9KLEK4sV7hgO1YY1/qWbAEdvp5PxXDJJcz5M4VCa4iJ+GE lijKZWv9THWwkEPK7GMTcTkS0wKmlKXxxPUEhUMjpmL6ueIMYWSroMrlL+Ht+bE70hgt BqP/EHinNZ4oOmnHy+t2AHrukwZEgRpW/6an4j8qU99WRoH0DGK2BwKsbe6vGgaqQaPp IA5w== X-Gm-Message-State: ALKqPwc9ysg//YSaLkFHWlNJMtddj4MFXrGbEU+1DkTVUL3tKvUPODrK 8XjlfVvO0WLzspIe9RgDkS3/Tw== X-Received: by 2002:a25:c2:: with SMTP id 185-v6mr6166628yba.183.1526910452592; Mon, 21 May 2018 06:47:32 -0700 (PDT) Received: from sophia ([72.188.97.40]) by smtp.gmail.com with ESMTPSA id r12-v6sm5578601ywl.59.2018.05.21.06.47.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 May 2018 06:47:31 -0700 (PDT) Date: Mon, 21 May 2018 09:47:29 -0400 From: William Breathitt Gray To: Jonathan Cameron Cc: benjamin.gaignard@st.com, fabrice.gasnier@st.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v6 3/9] docs: Add Generic Counter interface documentation Message-ID: <20180521134729.GB5723@sophia> References: <20180520163109.22b11af8@archlinux> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180520163109.22b11af8@archlinux> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 20, 2018 at 04:31:09PM +0100, Jonathan Cameron wrote: >On Wed, 16 May 2018 13:51:06 -0400 >William Breathitt Gray wrote: > >> This patch adds high-level documentation about the Generic Counter >> interface. >> >> Signed-off-by: William Breathitt Gray > >Various comments inline. I've been doing a lot long reviews recently >(outside of the kernel world) and keep discovering the old rule that >everytime you read a document you'll find something else to >improve :( > >Jonathan But it is good too to have multiple eyes on this -- I have found as an author my brain tends to skip over minor errors while rereading passages, so having persons reading it for both the first and subsequent times helps catch those mistakes I may have overlooked in my mind. :) >> --- >> Documentation/driver-api/generic-counter.rst | 336 +++++++++++++++++++ >> Documentation/driver-api/index.rst | 1 + >> MAINTAINERS | 1 + >> 3 files changed, 338 insertions(+) >> create mode 100644 Documentation/driver-api/generic-counter.rst >> >> diff --git a/Documentation/driver-api/generic-counter.rst b/Documentation/driver-api/generic-counter.rst >> new file mode 100644 >> index 000000000000..5c6b9c008c06 >> --- /dev/null >> +++ b/Documentation/driver-api/generic-counter.rst >> @@ -0,0 +1,336 @@ >> +.. SPDX-License-Identifier: GPL-2.0 >> + >> +========================= >> +Generic Counter Interface >> +========================= >> + >> +Introduction >> +============ >> + >> +Counter devices are prevalent within a diverse spectrum of industries. >> +The ubiquitous presence of these devices necessitates a common interface >> +and standard of interaction and exposure. This driver API attempts to >> +resolve the issue of duplicate code found among existing counter device >> +drivers by introducing a generic counter interface for consumption. The >> +Generic Counter interface enables drivers to support and expose a common >> +set of components and functionality present in counter devices. >> + >> +Theory >> +====== >> + >> +Counter devices can vary greatly in design, but regardless of whether >> +some devices are quadrature encoder counters or tally counters, all >> +counter devices consist of a core set of components. This core set of >> +components, shared by all counter devices, is what forms the essence of >> +the Generic Counter interface. >> + >> +There are three core components to a counter: > >Enumerate them here. If people are reading this as a paged document (pdf etc) >then the list of 3 as titles of next few sections may not be clear. > >* Count > >* Signal > >* Synapse > >> + >> +COUNT >> +----- >> +A Count represents the count data for a set of Signals. The Generic >> +Counter interface provides the following available count data types: >> + >> +* COUNT_POSITION_UNSIGNED: >> + Unsigned integer value representing position. >> + >> +* COUNT_POSITION_SIGNED: >> + Signed integer value representing position. > >Just a thought: As the '0' position is effectively arbitrary is there any >actual difference between signed and unsigned? If we defined all counters >to be unsigned and just offset any signed ones so the range still fitted >would we end up with a simpler interface - there would be no real loss >of meaning that I can see.. I suppose it might not be what people expect >though when they see their counters start at a large positive value... This is something I've been on the fence about for a while. I would actually prefer the interface to have simply a COUNT_POSITION data type to represent position and leave it as unsigned; distinguishing between signed and unsigned position seems ultimately arbitrary given that it's mathematically just an offset as you have pointed out. If we were to go down this route, then we'd have a count value that may always be represented using an unsigned data type, with an offset value that may always be represented using a signed data type -- the relationship being such: position = count + offset. Is that correct? My reason for giving the option for either signed or unsigned position was to help minimize the work userspace would have to do in order to get the value in which they're actually interested. I suppose it was a question of how abstract I want to make the interface -- although, making it simpler for userspace put more of a burden on the kernel side. However, the "offset" value route may actually be more robust in the end because userspace would have to know whether they want a signed or unsigned position regardless in order to parse, so with count and offet defined we know they will always be unsigned and signed respectively. > > > > >> + >> +A Count has a count function mode which represents the update behavior >> +for the count data. The Generic Counter interface provides the following >> +available count function modes: >> + >> +* Increase: >> + Accumulated count is incremented. >> + >> +* Decrease: >> + Accumulated count is decremented. >> + >> +* Pulse-Direction: >> + Rising edges on quadrature pair signal A updates the respective count. >> + The input level of quadrature pair signal B determines direction. >> + >Perhaps group the quadrature modes for the point of view of this document? >Might be slightly easier to read? > >* Quadrature Modes > > - x1 A: etc. > >> +* Quadrature x1 A: >> + If direction is forward, rising edges on quadrature pair signal A >> + updates the respective count; if the direction is backward, falling >> + edges on quadrature pair signal A updates the respective count. >> + Quadrature encoding determines the direction. >> + >> +* Quadrature x1 B: >> + If direction is forward, rising edges on quadrature pair signal B >> + updates the respective count; if the direction is backward, falling >> + edges on quadrature pair signal B updates the respective count. >> + Quadrature encoding determines the direction. >> + >> +* Quadrature x2 A: >> + Any state transition on quadrature pair signal A updates the >> + respective count. Quadrature encoding determines the direction. >> + >> +* Quadrature x2 B: >> + Any state transition on quadrature pair signal B updates the >> + respective count. Quadrature encoding determines the direction. >> + >> +* Quadrature x2 Rising: >> + Rising edges on either quadrature pair signals updates the respective >> + count. Quadrature encoding determines the direction. > >This one I've never met. Really? There are devices who do this form >of crazy? It gives really uneven counting and I'm failing to see when >it would ever make sense... References for these odd corner cases >would be good. > > >__|---|____|-----|____ >____|----|____|-----|____ > >001122222223334444444 That's the same reaction I had when I discovered this -- in fact the STM32 LP Timer is the first time I've come across such a quadrature mode. I'm not sure of the use case for this mode, because positioning wouldn't be precise as you've pointed out. Perhaps Fabrice or Benjamin can probe the ST guys responsible for this design choice to figure out the rationale. I'm leaving in these modes for now, as they do exist in the STM32 LP Timer, but it does make me curious what the intentions for them were (perhaps use cases outside of traditional quadrature encoder positioning). > > >> + >> +* Quadrature x2 Falling: >> + Falling edges on either quadrature pair signals updates the respective >> + count. Quadrature encoding determines the direction. >> + >> +* Quadrature x4: >> + Any state transition on either quadrature pair signals updates the >> + respective count. Quadrature encoding determines the direction. >> + >> +A Count has a set of one or more associated Signals. >> + >> +SIGNAL >> +------ >> +A Signal represents a counter input data; this is the input data that is >> +analyzed by the counter to determine the count data; e.g. a quadrature >> +signal output line of a rotary encoder. Not all counter devices provide >> +user access to the Signal data. >> + >> +The Generic Counter interface provides the following available signal >> +data types for when the Signal data is available for user access: >> + >> +* SIGNAL_LEVEL_LOW: >> + Signal line is in a low state. >> + >> +* SIGNAL_LEVEL_HIGH: >> + Signal line is in a high state. >> + >> +A Signal may be associated with one or more Counts. >> + >> +SYNAPSE >> +------- >> +A Synapse represents the association of a Signal with a respective >> +Count. Signal data affects respective Count data, and the Synapse >> +represents this relationship. >> + >> +The Synapse action mode specifies the Signal data condition which >> +triggers the respective Count's count function evaluation to update the >> +count data. The Generic Counter interface provides the following >> +available action modes: >> + >> +* None: >> + Signal does not trigger the count function. In Pulse-Direction count >> + function mode, this Signal is evaluated as Direction. >> + >> +* Rising Edge: >> + Low state transitions to high state. >> + >> +* Falling Edge: >> + High state transitions to low state. >> + >> +* Both Edges: >> + Any state transition. >> + >> +A counter is defined as a set of input signals associated with count >> +data that are generated by the evaluation of the state of the associated >> +input signals as defined by the respective count functions. Within the >> +context of the Generic Counter interface, a counter consists of Counts >> +each associated with a set of Signals, whose respective Synapse >> +instances represent the count function update conditions for the >> +associated Counts. >> + >> +Paradigm >> +======== >> + >> +The most basic counter device may be expressed as a single Count >> +associated with a single Signal via a single Synapse. Take for example >> +a counter device which simply accumulates a count of rising edges on a >> +source input line:: >> + >> + Count Synapse Signal >> + ----- ------- ------ >> + +---------------------+ >> + | Data: Count | Rising Edge ________ >> + | Function: Increase | <------------- / Source \ >> + | | ____________ >> + +---------------------+ >> + >> +In this example, the Signal is a source input line with a pulsing >> +voltage, while the Count is a persistent count value which is repeatedly >> +incremented. The Signal is associated with the respective Count via a >> +Synapse. The increase function is triggered by the Signal data condition >> +specified by the Synapse -- in this case a rising edge condition on the >> +voltage input line. In summary, the counter device existence and >> +behavior is aptly represented by respective Count, Signal, and Synapse >> +components: a rising edge condition triggers an increase function on an >> +accumulating count datum. >> + >> +A counter device is not limited to a single Signal; in fact, in theory >> +many Signals may be associated with even a single Count. For example, a >> +quadrature encoder counter device can keep track of position based on >> +the states of two input lines:: >> + >> + Count Synapse Signal >> + ----- ------- ------ >> + +-------------------------+ >> + | Data: Position | Both Edges ___ >> + | Function: Quadrature x4 | <------------ / A \ >> + | | _______ >> + | | >> + | | Both Edges ___ >> + | | <------------ / B \ >> + | | _______ >> + +-------------------------+ >> + >> +In this example, two Signals (quadrature encoder lines A and B) are >> +associated with a single Count: a rising or falling edge on either A or >> +B triggers the "Quadrature x4" function which determines the direction >> +of movement and updates the respective position data. The "Quadrature >> +x4" function is likely implemented in the hardware of the quadrature >> +encoder counter device; the Count, Signals, and Synapses simply >> +represent this hardware behavior and functionality. >> + >> +Signals associated with the same Count can have differing Synapse action >> +mode conditions. For example, a quadrature encoder counter device >> +operating in a non-quadrature Pulse-Direction mode could have one input >> +line dedicated for movement and a second input line dedicated for >> +direction:: >> + >> + Count Synapse Signal >> + ----- ------- ------ >> + +---------------------------+ >> + | Data: Position | Rising Edge ___ >> + | Function: Pulse-Direction | <------------- / A \ (Movement) >> + | | _______ >> + | | >> + | | None ___ >> + | | <------------- / B \ (Direction) >> + | | _______ >> + +---------------------------+ >> + >> +Only Signal A triggers the "Pulse-Direction" update function, but the >> +instantaneous state of Signal B is still required in order to know the >> +direction so that the position data may be properly updated. Ultimately, >> +both Signals are associated with the same Count via two respective >> +Synapses, but only one Synapse has an active action mode condition which >> +triggers the respective count function while the other is left with a >> +"None" condition action mode to indicate its respective Signal's >> +availability for state evaluation despite its non-triggering mode. >> + >> +Keep in mind that the Signal, Synapse, and Count are abstract >> +representations which do not need to be closely married to their >> +respective physical sources. This allows the user of a counter to >> +divorce themselves from the nuances of physical components (such as >> +whether an input line is differential or single-ended) and instead focus >> +on the core idea of what the data and process represent (e.g. position >> +as interpreted from quadrature encoding data). >> + >> +Userspace Interface >> +=================== >> + >> +Several sysfs attributes are generated by the Generic Counter interface, >> +and reside under the /sys/bus/counter/devices/counterX directory, where >> +counterX refers to the respective counter device. Please see >> +Documentation/ABI/testing/sys-bus-counter-generic-sysfs for detailed >> +information on each Generic Counter interface sysfs attribute. >> + >> +Through these sysfs attributes, programs and scripts may interact with >> +the Generic Counter paradigm Counts, Signals, and Synapses of respective >> +counter devices. >> + >> +Driver API >> +========== >> + >> +Driver authors may utilize the Generic Counter interface in their code >> +by including the include/linux/iio/counter.h header file. This header > >Didn't this move? Yes you are correct, looks like an oversight I made. I'll cleanup this and the rest with the next revision then. William Breathitt Gray > >> +file provides several core data structures, function prototypes, and >> +macros for defining a counter device. >> + >> +.. kernel-doc:: include/linux/counter.h >> + :internal: >> + >> +.. kernel-doc:: drivers/counter/generic-counter.c >> + :export: >> + >> +Implementation >> +============== >> + >> +To support a counter device, a driver must first allocate the available >> +Counter Signals via counter_signal structures. These Signals should >> +be stored as an array and set to the signals array member of an >> +allocated counter_device structure before the Counter is registered to >> +the system. >> + >> +Counter Counts may be allocated via counter_count structures, and >> +respective Counter Signal associations (Synapses) made via >> +counter_synapse structures. Associated counter_synapse structures are >> +stored as an array and set to the the synapses array member of the >> +respective counter_count structure. These counter_count structures are >> +set to the counts array member of an allocated counter_device structure >> +before the Counter is registered to the system. >> + >> +Driver callbacks should be provided to the counter_device structure via >> +a constant counter_ops structure in order to communicate with the >> +device: to read and write various Signals and Counts, and to set and get >> +the "action mode" and "function mode" for various Synapses and Counts >> +respectively. >> + >> +A defined counter_device structure may be registered to the system by >> +passing it to the counter_register function, and unregistered by passing >> +it to the counter_unregister function. Similarly, the >> +devm_counter_register and devm_counter_unregister functions may be used >> +if device memory-managed registration is desired. >> + >> +Extension sysfs attributes can be created for auxiliary functionality >> +and data by passing in defined counter_device_ext, counter_count_ext, >> +and counter_signal_ext structures. In these cases, the >> +counter_device_ext structure is used for global configuration of the >> +respective Counter device, while the counter_count_ext and >> +counter_signal_ext structures allow for auxiliary exposure and >> +configuration of a specific Count or Signal respectively. >> + >> +Architecture >> +============ >> + >> +When the Generic Counter interface counter module is loaded, the >> +counter_init function is called which registers a bus_type named >> +"counter" to the system. Subsequently, when the module is unloaded, the >> +counter_exit function is called which unregisters the bus_type named >> +"counter" from the system. >> + >> +Counter devices are registered to the system via the counter_register >> +function, and later removed via the counter_unregister function. The >> +counter_register function establishes a unique ID for the Counter >> +device and creates a respective sysfs directory, where X is the >> +mentioned unique ID: >> + >> + /sys/bus/counter/devices/counterX >> + >> +Sysfs attributes are created within the counterX directory to expose >> +functionality, configurations, and data relating to the Counts, Signals, >> +and Synapses of the Counter device, as well as options and information >> +for the Counter device itself. >> + >> +Each Signal has a directory created to house its relevant sysfs >> +attributes, where Y is the unique ID of the respective Signal: >> + >> + /sys/bus/counter/devices/counterX/signalY >> + >> +Similarly, each Count has a directory created to house its relevant >> +sysfs attributes, where Y is the unique ID of the respective Count: >> + >> + /sys/bus/counter/devices/counterX/countY >> + >> +For a more detailed breakdown of the available Generic Counter interface >> +sysfs attributes, please refer to the >> +Documentation/ABI/testing/sys-bus-counter file. >> + >> +The Signals and Counts associated with the Counter device are registered >> +to the system as well by the counter_register function. The >> +signal_read/signal_write driver callbacks are associated with their >> +respective Signal attributes, while the count_read/count_write and >> +function_get/function_set driver callbacks are associated with their >> +respective Count attributes; similarly, the same is true for the >> +action_get/action_set driver callbacks and their respective Synapse >> +attributes. If a driver callback is left undefined, then the respective >> +read/write permission is left disabled for the relevant attributes. >> + >> +Similarly, extension sysfs attributes are created for the defined >> +counter_device_ext, counter_count_ext, and counter_signal_ext >> +structures that are passed in. >> diff --git a/Documentation/driver-api/index.rst b/Documentation/driver-api/index.rst >> index 6d8352c0f354..5fd747c4f2ce 100644 >> --- a/Documentation/driver-api/index.rst >> +++ b/Documentation/driver-api/index.rst >> @@ -25,6 +25,7 @@ available subsections can be seen below. >> frame-buffer >> regulator >> iio/index >> + generic-counter >> input >> usb/index >> pci >> diff --git a/MAINTAINERS b/MAINTAINERS >> index 1413e3eb49e5..7a01aa63fb33 100644 >> --- a/MAINTAINERS >> +++ b/MAINTAINERS >> @@ -3674,6 +3674,7 @@ M: William Breathitt Gray >> L: linux-iio@vger.kernel.org >> S: Maintained >> F: Documentation/ABI/testing/sysfs-bus-counter* >> +F: Documentation/driver-api/generic-counter.rst >> F: drivers/counter/ >> F: include/linux/counter.h >> >