Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp996940yba; Mon, 1 Apr 2019 23:30:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRcznHDUAefmnjCe7nCrHh9nLj8rcOKP15khlOkPmpI5Xy3rHdon6jS0tOu9e8W52TiTKi X-Received: by 2002:a63:cf11:: with SMTP id j17mr65407186pgg.252.1554186617492; Mon, 01 Apr 2019 23:30:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554186617; cv=none; d=google.com; s=arc-20160816; b=b1nsHConvEuaMJ2m92Sz9C6YvKpktjNeQpkQ6Dd6liEvUjM3C0IuY83h6RolYvBE0M RXeZFmCAbot/Jp/+1LiKKhoL6VVpIesWcHae4xkjky1x9IAkA4cMCkyaOWMyPWC0wLIc 36gdFcg3qZcCv/htrTLSUVUt962Vth8FUIUS6R+AuAF5KFXKsyWBWo8jEN1NgFnmFoE8 9bU/zS3MTdbq08Gtj5jSNF9QlYZsxssHS4cTLTfeyrNTGKzkudeMQyOK6Ek+TfOrdFLb AQRK2swWHe7CoiLjKKOOIyqHryymvkgybuVEAlrjSFnonsF1GXT+QmhzFxikWRAlvdF/ P1Lg== 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:to:subject:cc; bh=uHUVj3VY2HVTsRJjbRzQam+eAwirWAtcH3kSoWq+wWc=; b=w5qLeNSudQN/mXt8Pub2CL1VEHBwlyz3B8BNrcOIEIyv8zCW9cN7fl2SHRd3d0Doaa oo+iQluR1K88yCJKxFAU1NcEyrVtrACO4inzt5IMx+jRYbUtgiRSJNP9T5ArEVTxc8mY Ljf3YKO+ndPPQ8ZR7H/RRpT1LBDkg9JlEGyujdLxRizcDRxtpsQh7xN4yNHyhwLsy9L9 HKT2XBPsMaiTzamxtdAEfe83xBMW3mNVDDaFGvZNcCVuvTP69nDrPDENzaBU4KkgeByn T0kWqBZGL4+Y0cyKlkh59j/HQr5GZ2chhgg5jp3jWwzIQxcFIalaLwuWrSj5sXfZsDHR ZKww== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bj7si10517321plb.408.2019.04.01.23.30.01; Mon, 01 Apr 2019 23:30:17 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728835AbfDBGW0 (ORCPT + 99 others); Tue, 2 Apr 2019 02:22:26 -0400 Received: from mx.socionext.com ([202.248.49.38]:39568 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbfDBGW0 (ORCPT ); Tue, 2 Apr 2019 02:22:26 -0400 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 02 Apr 2019 15:22:24 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id 14C9A6117D; Tue, 2 Apr 2019 15:22:24 +0900 (JST) Received: from 172.31.9.53 (172.31.9.53) by m-FILTER with ESMTP; Tue, 2 Apr 2019 15:22:24 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by iyokan.css.socionext.com (Postfix) with ESMTP id E92C840221; Tue, 2 Apr 2019 15:22:23 +0900 (JST) Received: from [127.0.0.1] (unknown [10.213.234.213]) by yuzu.css.socionext.com (Postfix) with ESMTP id B6C66120487; Tue, 2 Apr 2019 15:22:23 +0900 (JST) Cc: kanematsu.shinji@socionext.com, 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 Subject: Re: [PATCH 0/2] Add Updown Counter support for Milbeaut M10V SoC To: William Breathitt Gray , Jonathan Cameron References: <1553581954-13487-1-git-send-email-kanematsu.shinji@socionext.com> <20190330183603.55886d4f@archlinux> <20190331020932.GA4108@icarus> From: =?UTF-8?B?S2FuZW1hdHN1LCBTaGluamkv5YW85p2+IOS8uOasoQ==?= Message-ID: Date: Tue, 2 Apr 2019 15:22:22 +0900 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 In-Reply-To: <20190331020932.GA4108@icarus> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi William, On 2019/03/31 11:09, William Breathitt Gray wrote: > On Sat, Mar 30, 2019 at 06:36:03PM +0000, Jonathan Cameron wrote: >> 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, > > If you reimplement this driver to use the new Generic Counter API, I can > pick it up and include it with my next patchset submission. Please base > your patches ontop of the "generic_counter_v10" branch from my personal > repository: > > https://gitlab.com/vilhelmgray/iio/commits/generic_counter_v10 > > Documentation can be found at: > > Documentation/driver-api/generic-counter.rst > Documentation/ABI/testing/sysfs-bus-counter > > Look at the existing drivers inside the drivers/counter directory to > serve as references: > > drivers/counter/ftm-quaddec.c > drivers/counter/stm32-timer-cnt.c > > If you have any troubles or difficulties with the API, send me a message > and I will be happy to help. :-) > Thank you for your information. I read and understand the new Generic Counter API. Thank you, Kanematsu > Thank you, > > William Breathitt Gray > >> >>> >>> 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 >>> >>