Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5196017imm; Sun, 22 Jul 2018 15:52:52 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcuh/K04jmGLQRd61fTHdTav1y6jGlutKOK1dW9h+Ahnw3l/Za1swZnbekiahE+POirfLC/ X-Received: by 2002:a62:3b89:: with SMTP id w9-v6mr10845775pfj.80.1532299972284; Sun, 22 Jul 2018 15:52:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532299972; cv=none; d=google.com; s=arc-20160816; b=e9uKWufTn71liMLOaF+pzPQe47/Rtt/iMXB3+mpsnKQdev3W5jgOdcQvMPOIHSwU1I Tkr/tLZPiXwaussdC1ZYfcvqF7VflfJLZwE8Q/DXlYWYafRTH68VzradhjXujXLvuC6V KTcest11vT6e9p4xPTgYazLtDHAGcIkteySzLYaKfOQDEVelew7zo0hZSxH39pLyQSpg D2gOByRfZfcM6XPXCZ1FpCaTu9IB1UiI/HNBm1DTAQVJxuOPRzNuc0IzFRV8vKk5xkEI ibgtMroCeqnXOFiCrSudlkRcxcEfUAHlM7ds5TWOAF6gGNCYU5U4j5wOJvhK3XK/jgYd 4gSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=A7C+IQtUBjQpU57XgReRLYs7kX27lQ6UC81xs0vzL7c=; b=MxP9V6K0z73kpQkpJd2y3kQGgVfudpAZwIeaIPi6mleO4o72x94KRu+D7lDEHtoP52 ciK8gdGwDppHK0rp5+PmcFiAGbdsAQt4fCYTwWLHQ9Xj5DMhPUNTi6s1Iom5zhXl/OKI JJ8RoVKOSd99s08Czi0UtA4O6ihUpWLhLlOv0kU0ezICAMmh/1DfyXJGZ0KwNbvO2m5c LLiCVX7mGimPZ++zdEfIe2d4TxJk/AB5ujLHma5XAxHg8O81d/IGfuBnM4AknzSz/3RP XBGn3Jb5OzM2Gl9bc6FE2ve0gLf+BnJiPNwbMYMDainHlU3RZ0ajnB03WKF3iHBHMvky cjnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YMh2kNRR; 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 y7-v6si6381302pgp.551.2018.07.22.15.52.04; Sun, 22 Jul 2018 15:52:52 -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=YMh2kNRR; 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 S1730722AbeGVXsO (ORCPT + 99 others); Sun, 22 Jul 2018 19:48:14 -0400 Received: from mail-yb0-f195.google.com ([209.85.213.195]:42101 "EHLO mail-yb0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730429AbeGVXsO (ORCPT ); Sun, 22 Jul 2018 19:48:14 -0400 Received: by mail-yb0-f195.google.com with SMTP id c10-v6so6594259ybf.9; Sun, 22 Jul 2018 15:49:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=A7C+IQtUBjQpU57XgReRLYs7kX27lQ6UC81xs0vzL7c=; b=YMh2kNRRFvozIUoU3NO2ZmrumteG88E0kMVRj+X23JL4CIWwCwt3Bl8+QhavEFiY8k gU56wGMAvyhplOR/T02fxLyRC3VV5h7QFPQAHd8cixh3ZMaz2Irkmz0TEvOkEJyIgIJ6 CdFifX7kLyU1KLLSnw0G+cMdZTxT4nUO7GTk7JwU6uY/bTI1Q3AVwAaC5H0RlEl1JcPW JEJmNnpD6jV8Wz0RlGvUoYRTr030jCyY3AtRdVb5VnauOe4hCLWIcYihS9x3Acswkzp2 DVGYNIpHy0c6bbJ57Ed+iDGTEXmLNAiWKJdq+z+a4wRzj5r2pIBpnGeCGBPSz3Zxsctg nfkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=A7C+IQtUBjQpU57XgReRLYs7kX27lQ6UC81xs0vzL7c=; b=U1ZXvghBrO7OHoU15ZMpFa2K6CJRE4JMz+dgMlR2Mynz+73Zij+L+r6bADEX6e7M49 WEYvQKqRFInaOmzwQb9cYWWbdkLBy4kZagIA7mdOfU/iW4YHXpuF8HY59g5eCcxLllIm /vsACFGRvfB6PQ/GumYwwIzLmMPf/Iw2Ya6HAWO6J74eHMobkYtonNgFqbBVhBXUtQKC 6CAyHyIVlA1GBKC2t9pQKzC+ROu+5EbEY4Q24bKPpzKOwAGabOFtBC8Hi+3xiRVJT+Z3 74px/xXJwu2p6pRbvGuoCgk6eZ8MYgwgrFQuGYekyyVsb23Q9hZ8JWET8MKIsd4IxJCs JiZg== X-Gm-Message-State: AOUpUlEdGdg3AeIB2xS4Yu7DE0EFjUouuq87By1T3ohEXx6LyK+PhteZ LnfbLiMxo+EOpFdOJ4J8CVo= X-Received: by 2002:a25:6f84:: with SMTP id k126-v6mr5591015ybc.419.1532299796331; Sun, 22 Jul 2018 15:49:56 -0700 (PDT) Received: from localhost ([72.188.97.40]) by smtp.gmail.com with ESMTPSA id h3-v6sm3587167ywd.47.2018.07.22.15.49.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Jul 2018 15:49:55 -0700 (PDT) From: William Breathitt Gray To: gregkh@linuxfoundation.org Cc: jic23@kernel.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, akpm@linux-foundation.org, William Breathitt Gray Subject: [PATCH v9 00/11] Introduce the Counter subsystem Date: Sun, 22 Jul 2018 18:49:49 -0400 Message-Id: X-Mailer: git-send-email 2.18.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes in v9: - Prefix exported symbols with "counter_" to make counter namespace explicit and clear - Replace scnprintf and snprintf lines with sprintf in 104-quad-8.c since we're dealing with sysfs files This revision is functionally identical to the last; changes in this version were made to improve code clarity. Andrew Morton suggested improving the names of the exported symbols to clean up the Counter subsytem namespace. This revision adds a "counter_" prefix to the exported symbols to keep the namespace tidy and these symbols as clearly part of the Counter subsystem. Andrew Morton also brought up a good point that the Generic Counter "signal" terminology could conflict with the existing established use of the term in other areas of the Linux kernel. I've changed the major exported symbols in counter.h that used the "signal_" naming covention to now use a "counter_signal_" naming convention in order to help prevent this confusion; I've made similar changes to symbols in counter.c as well. If this naming still causes trouble, we can consider alternative names for this component. William Breathitt Gray 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 | 1567 +++++++++++++++++ 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 | 510 ++++++ include/linux/counter_enum.h | 45 + 24 files changed, 4352 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 -- 2.18.0