Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp2707047ybb; Sat, 30 Mar 2019 11:37:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqyWkQUJwsIjR0X25z3vHz40LKT3c+lCRJ4sVN334zpCfCn3+lo5F0ZsEklYHFcuU5Xugjmp X-Received: by 2002:a17:902:7590:: with SMTP id j16mr20569586pll.98.1553971027573; Sat, 30 Mar 2019 11:37:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553971027; cv=none; d=google.com; s=arc-20160816; b=k6Hegz/45Dbb5v9Iw1Bqu6NCaqW22WZxQPFrCKNy+vqF0NWJG/mEyD+qGZLsTmv37p kwEuB9+/WPPQzHOEndy8RmqFDoRpOccOtVoCd80pReUEUHI9oNbcuDEXZEKvbA6bopu6 YtUarXyU/xf5G+m7CXxdfCqUV78Wg4ScL8l6MOyjGGCqP+MvO/G0YhbaMKAqMpsj+7TA lm/WXb4X0HWQ8OBUsc4EC8/9YF2o6m8b+EJFf1MxUUMfs9fp9jHVfanMMqeCf8/nJqB7 RGZ73SfDTPb0g91YyA0PC8Se7JEpcqKVRKKe5A3sc6zDRSoTMKDowCeZ7zp5XGCadIaB Egqg== 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; bh=4n2jNcTA25+p25t87qaL336YYkj7rwqGG0nDexZhZ/Y=; b=UPkS0T0YGRQoBVqWtx/7yuZSEnpxiRosydgCOcy/lReZjm4pGW6TEFdLGui8c8089A 6Xp/qVZ5DAYJX6fbmuzTK85F9rgho9wDy2VeNY55LQKWo+nQoaNGEYdzIHCn8/FJ3yV/ 951yo1qSyTEgibURDXDeuASVSkfbLqWV9ECQFCuaeZWReLzigCcEOOQK20O9io1vG30x MgjkhCQ6xGEozC33U6zZLIfKbixHK+WmeFB1F0dD6117/11BwR29BWanV8sa7+5QvHiL ana6ztH2PwZpai+cG5QfP+g3tlLXS+aq1YCbj/gBW4/wwTBKFVfVu4idDqUoUy0M/IK0 XXrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="zlt/v5ib"; 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 w16si4161239pgm.240.2019.03.30.11.36.52; Sat, 30 Mar 2019 11:37:07 -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="zlt/v5ib"; 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 S1730841AbfC3SgM (ORCPT + 99 others); Sat, 30 Mar 2019 14:36:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:33714 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730619AbfC3SgL (ORCPT ); Sat, 30 Mar 2019 14:36:11 -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 9BABA2082C; Sat, 30 Mar 2019 18:36:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553970970; bh=ycL/FmvTFv31dFiOYMFqKEzYgUmDeDoDHFggDEipugA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=zlt/v5ibXSjFpchuLpB73RkXRco8CF92/sIL6QbT2ofzA/AJdgv3oMRGQvEFy5cDk MU95b5/5ztMeH/NUYMwkKnv6QYgzkl3Aj+HkACges0vyjlxKGorp/nLeMp/Wh+boiC nomLtUrWDlLaEOIXJDAs7htf5HyKUqOZf4NX+iDQ= Date: Sat, 30 Mar 2019 18:36:03 +0000 From: Jonathan Cameron To: Shinji Kanematsu Cc: robh+dt@kernel.org, mark.rutland@arm.com, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, masami.hiramatsu@linaro.org, jaswinder.singh@linaro.org, orito.takao@socionext.com, sugaya.taichi@socionext.com, kasai.kazuhiro@socionext.com, William Breathitt Gray Subject: Re: [PATCH 0/2] Add Updown Counter support for Milbeaut M10V SoC Message-ID: <20190330183603.55886d4f@archlinux> In-Reply-To: <1553581954-13487-1-git-send-email-kanematsu.shinji@socionext.com> References: <1553581954-13487-1-git-send-email-kanematsu.shinji@socionext.com> X-Mailer: Claws Mail 3.17.3 (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 Tue, 26 Mar 2019 15:32:34 +0900 Shinji Kanematsu wrote: > This is a series of patch which adds Updown Counter support on > Milbeaut M10V SoC. > > The Updown Counter counts input pulse signal from external quadrature encoder. > It also has input pulse signal counter function. Hi Shinji, Are you aware of the counter subsystem that has been proposed (and as far as I am concerned is ready to be merged)? https://patchwork.kernel.org/project/linux-iio/list/?series=147 (I think that's the latest version posted).. William, perhaps you could give an update? (bad luck, you are getting popular ;) I'll take a quick review as it stands, as some issues may carry over. I appreciate that it's always unfortunate to try to upstream stuff at the same time as a new framework is being developed / upstreamed, but I don't intend to take any additional counter drivers into IIO. We just end up having to maintain old interfaces in more and more drivers. Thanks, Jonathan > > Shinji Kanematsu (2): > dt-bindings: iio: counter: Add Milbeaut Updown Counter > iio: counter: Add support for Milbeaut Updown Counter > > .../bindings/iio/counter/milbeaut-updown_cnt.txt | 22 ++ > drivers/iio/counter/Kconfig | 12 + > drivers/iio/counter/Makefile | 1 + > drivers/iio/counter/milbeaut-updown.h | 38 ++ > drivers/iio/counter/milbeaut-updown_cnt.c | 385 +++++++++++++++++++++ > 5 files changed, 458 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/counter/milbeaut-updown_cnt.txt > create mode 100644 drivers/iio/counter/milbeaut-updown.h > create mode 100644 drivers/iio/counter/milbeaut-updown_cnt.c >