Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4137743imm; Sat, 21 Jul 2018 11:02:46 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdBykwaSNRkLasRQuCa1SUsjvNYydPgI9CSHoexizUtZb3OJmPGOu4fcx9rLaPATNcvuzAy X-Received: by 2002:a17:902:704c:: with SMTP id h12-v6mr6567605plt.237.1532196166513; Sat, 21 Jul 2018 11:02:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532196166; cv=none; d=google.com; s=arc-20160816; b=NO/RN4CmQRVLLThUS4C9yvfgvuUjTNPD1IHUkiaPHip+RtD2JoFctbWrXW0TvYEDIN aQLjTQGkUp4ngihYrytHVn5VJ7M4TtPHDLmeZXCbv+jsM98x4PlOTyrZ9bdbZvRFe0/7 7Ji+zQnZ6wF9zrSmGDGUjGnRdC0+FY4d95FG6LVQq8MuGL22bVwnJXJH2ldiOx1ckj4Y 3Fv4Ro76tfTL8l/w5UtDgK4wc/oP7U7LNR7i6NHGKeK0UCWoohRIuUjkGYfObHMtp5rx TMC5i0H2vXwAMgXB1GTcNnmtDk+DNmMzCgx9NOxPSASkuTiylNHwoZdCdQZJUiNeZdJB GNqw== 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 :dkim-signature:arc-authentication-results; bh=jR0zREECS0pRSCdb6y2fDNQOttRbm3U4qew3pWjp9Ng=; b=WMpFdbLc7xc/LULEuXveXdEee6UasgJQBje39IB6NO6zKUTPZ2BgeEuqZTd3LyKAGh 4W+LTNfnUkfGJHpEEONuwcvxVbymCVUrsnzqkQsA/8qBzbxAwPO327I8OfUxpb/iJvQ+ xQwRjDkCmgFOae09fjsljesxo/rDkN03kBPHoyDDCzbyGdmW9BrLgiRC4DTXxTz0Q2Ok JZCkIVCQBffNtlTxLzhE++eychDH+whokln3sNGCtfngw7Pr7CZ05LXjY/9rcL3lzCt+ aUWMzGRZFWCAZtqvy4RcBCZGFPXRf5x96KG8daXcdq+jfRt13nQKyJ+YLIfKlFyDahGK ES0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=T71HSYXW; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c17-v6si4555550pgg.628.2018.07.21.11.02.31; Sat, 21 Jul 2018 11:02:46 -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=@kernel.org header.s=default header.b=T71HSYXW; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728142AbeGUSzN (ORCPT + 99 others); Sat, 21 Jul 2018 14:55:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:52252 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727854AbeGUSzN (ORCPT ); Sat, 21 Jul 2018 14:55:13 -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 2D02120849; Sat, 21 Jul 2018 18:01:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1532196099; bh=6XoJIC7JsVrS6HmSA+/Z33mO+IROjJHgaQ6FclGpGZ4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=T71HSYXWeYdCC8vXuGUd1czfHqZ3bxMvA3u+w2i50Jcmy8ovV9F/F/dpznKZ3bg5q aBU8P8JhzxwF8RnSQid6kq3fAroUcbHhCdhKjEBH+zf0HFNSyYvR+70ZUi195SmzIL V+fGoZFNZWyNBDTA3sVzdVeNnb5GOwKs3x6OmIM8= Date: Sat, 21 Jul 2018 19:01:34 +0100 From: Jonathan Cameron To: William Breathitt Gray Cc: gregkh@linuxfoundation.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, fabrice.gasnier@st.com, benjamin.gaignard@st.com, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net Subject: Re: [PATCH v8 00/11] Introduce the Counter subsystem Message-ID: <20180721190134.166e50ab@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 Sun, 15 Jul 2018 16:44:24 -0400 William Breathitt Gray wrote: > Changes in v8: > - Add counter_enum.h file > - Simplify COUNTER Kconfig option help text > - Rename generic-counter.c to the more straightforward counter.c > - Update copyright and license boilerplate (use recommended SPDX line) > - Replace EXPORT_SYMBOL lines with respective EXPORT_SYMBOL_GPL lines > - Replace scnprintf lines with sprintf since we're dealing with sysfs files > - Add struct counter_attr_parm to simplify counter_attribute_create parameters > - Rename *_comp_t suffixes to *_unit in order to avoid *_t suffix implications > - List sysfs attribute values verbatim in sysfs documentation files > - Reorganize 104-QUAD-8 driver license boilerplate update to dedicated patch > > This revision is functionally identical to the last; changes in this version > were made to improve clarity, formatting and whitespace, and organization. I > also took this opportunity to record some of the new ACKs from the last > submission. > > The counter_enum.h file was created to hold the Generic Counter enum helper > functions required by the Generic Counter enum macros (i.e. COUNTER_SIGNAL_ENUM, > COUNTER_COUNT_ENUM, etc.). These helper functions are not intended to be used > directly by driver authors, so I thought it best to keep them separated. Now the > counter.h file contains only macro, functions, and data structures that are > expected to possibly appear in a counter device driver. > > The counter_attribute_create function parameter list was large so I reorganized > the parameters into the counter_attr_parm structure, which may be set and passed > by reference to the counter_attribute_create function. Since the show and store > function pointers match with the struct device_attribute show and store function > pointers, I decided to keep them declared as there are here without a typedef -- > however, I can typedef them in a future revision if it will improve clarity to > do so. > > Heads-up for Jonathan Cameron: you may pick-up the "iio: 104-quad-8: Update > license boilerplate" patch independent of this series; it's the SPDX license > boilerplate update for the 104-QUAD-8 IIO driver. > > Sincerely, > > William Breathitt Gray > This crossed with Andrew Morton's good points on this occupying namespace that is rather too generically named. Hence I'll assume we'll see a v9 with a solution to that (and personally ignore v8 to save time ;) Ah I see you just replied to Andrew. Great! Jonathan > Benjamin Gaignard (2): > counter: Add STM32 Timer quadrature encoder > dt-bindings: counter: Document stm32 quadrature encoder > > Fabrice Gasnier (2): > counter: stm32-lptimer: add counter device > dt-bindings: counter: Adjust dt-bindings for STM32 lptimer move > > William Breathitt Gray (7): > counter: Introduce the Generic Counter interface > counter: Documentation: Add Generic Counter sysfs documentation > docs: Add Generic Counter interface documentation > iio: 104-quad-8: Update license boilerplate > counter: 104-quad-8: Add Generic Counter interface support > counter: 104-quad-8: Documentation: Add Generic Counter sysfs > documentation > iio: counter: Add deprecation markings for IIO Counter attributes > > Documentation/ABI/testing/sysfs-bus-counter | 230 +++ > .../ABI/testing/sysfs-bus-counter-104-quad-8 | 36 + > Documentation/ABI/testing/sysfs-bus-iio | 8 + > .../testing/sysfs-bus-iio-counter-104-quad-8 | 16 + > .../{iio => }/counter/stm32-lptimer-cnt.txt | 0 > .../bindings/counter/stm32-timer-cnt.txt | 31 + > .../devicetree/bindings/mfd/stm32-lptimer.txt | 2 +- > .../devicetree/bindings/mfd/stm32-timers.txt | 7 + > Documentation/driver-api/generic-counter.rst | 342 ++++ > Documentation/driver-api/index.rst | 1 + > MAINTAINERS | 15 +- > drivers/Kconfig | 2 + > drivers/Makefile | 1 + > drivers/{iio => }/counter/104-quad-8.c | 782 ++++++++- > drivers/counter/Kconfig | 51 + > drivers/{iio => }/counter/Makefile | 5 +- > drivers/counter/counter.c | 1561 +++++++++++++++++ > drivers/{iio => }/counter/stm32-lptimer-cnt.c | 361 +++- > drivers/counter/stm32-timer-cnt.c | 390 ++++ > drivers/iio/Kconfig | 1 - > drivers/iio/Makefile | 1 - > drivers/iio/counter/Kconfig | 34 - > include/linux/counter.h | 505 ++++++ > include/linux/counter_enum.h | 45 + > 24 files changed, 4341 insertions(+), 86 deletions(-) > create mode 100644 Documentation/ABI/testing/sysfs-bus-counter > create mode 100644 Documentation/ABI/testing/sysfs-bus-counter-104-quad-8 > rename Documentation/devicetree/bindings/{iio => }/counter/stm32-lptimer-cnt.txt (100%) > create mode 100644 Documentation/devicetree/bindings/counter/stm32-timer-cnt.txt > create mode 100644 Documentation/driver-api/generic-counter.rst > rename drivers/{iio => }/counter/104-quad-8.c (44%) > create mode 100644 drivers/counter/Kconfig > rename drivers/{iio => }/counter/Makefile (46%) > create mode 100644 drivers/counter/counter.c > rename drivers/{iio => }/counter/stm32-lptimer-cnt.c (48%) > create mode 100644 drivers/counter/stm32-timer-cnt.c > delete mode 100644 drivers/iio/counter/Kconfig > create mode 100644 include/linux/counter.h > create mode 100644 include/linux/counter_enum.h >