Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp1586520imp; Fri, 22 Feb 2019 06:39:25 -0800 (PST) X-Google-Smtp-Source: AHgI3IZfuOsXosL8ZvrcpZf/ju0rVxpuZK6K8NdUIDKYYHzNc1ybfQ8SQ24QZx7C32H4p7XNA0Db X-Received: by 2002:a62:e0ca:: with SMTP id d71mr4529850pfm.62.1550846365824; Fri, 22 Feb 2019 06:39:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550846365; cv=none; d=google.com; s=arc-20160816; b=ULx7blR1swqRrNJKMETNF0VM3ZKTWy0/TZ8azTjxoaFD6ctVFqCyEZSitFqg7OE59L bRwQgY/4rENsqaMeps6XJDMlY7gyC3NS2FGg1X6psHfSyH23bZ3Qd5hhhmvPj0HEaWUn r52MlulD7+FX6t+tA/5EVEvidZce99zY4wo2OJ/38FP1iryfOhB1vneI5LTt9xNjO146 eilWkXRFKP5MYaooPhowVRGvs6PjujVPPjywQgANju+4Kst8GF4quu4P9CkAtjSsIYmr iNXRY8QmzXEAm50YEQZmLyORKuZ0Zev2oXRxbpeHYO5m2LXl9d5D12RkCjDigB+lPEvH psGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=71FWYCSYqolUNYdHB6h+7aw1EHmEdZQNjgmLsAFRBRQ=; b=m6Ih8YhTZL3UGJn9ncQmpPblXANq5PRCbIk+t0LTalGF3DlOmbJ+KUkP54m12RQ9ML H9lv2yv6L5t7wjQ/Lp+prht9NP57yRP4r6jiYiHMD5aQhRij8LgpV7j9AUVBM0Rj8zAv oexEY0qOFAb5FXbIeqBRu4rlEjs8owIa96e55cdyu1ovQxbr+mOx4RvwFL1yn8N9foe0 73FLM6Ft+6LkakFJcg0FzUyyTTtfpagfrDTrrgyukjG6vd7jELm2S8GtFMsLD24wTS/g iU/fbih17HVqCwgXmvrwt3Gr4Ig73cay5liwvRCNRy63CLdgFWIWZ/QdDxhYV/mhCee4 63QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@essensium-com.20150623.gappssmtp.com header.s=20150623 header.b="VF9ZC/pw"; 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 z18si1540393pgf.66.2019.02.22.06.39.10; Fri, 22 Feb 2019 06:39:25 -0800 (PST) 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=@essensium-com.20150623.gappssmtp.com header.s=20150623 header.b="VF9ZC/pw"; 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 S1726954AbfBVOh3 (ORCPT + 99 others); Fri, 22 Feb 2019 09:37:29 -0500 Received: from mail-yb1-f196.google.com ([209.85.219.196]:36044 "EHLO mail-yb1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726331AbfBVOh3 (ORCPT ); Fri, 22 Feb 2019 09:37:29 -0500 Received: by mail-yb1-f196.google.com with SMTP id f5so921191ybf.3 for ; Fri, 22 Feb 2019 06:37:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=essensium-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=71FWYCSYqolUNYdHB6h+7aw1EHmEdZQNjgmLsAFRBRQ=; b=VF9ZC/pwjqPWKGz+OnP5zP6UW1KRZmpKMyefSgpo9M4yhncv/srNYQXlaNPT0mMYSc CevSxczb1xOBYFBXTS3F+Ew3X3+rl+AWcvsSIEmeMaROY+QfKiQ/mkb1o6/5OqqgPadL v74SSsCtOtxqHNRLTdexqtC6ozLYX9HZIGDNtSSjI5wuocWlAw0jmT4sOe/2WTDX43St oT9RvASxAW2w7WNgyfZc7R5fhl5OhAUvYNAeP7wQfNB74k6hrb8IjoZ8CVtpTweE74Yw 0LC8wiVx/gJd6mjqVP/BisAAxFNEvvOEPUcCxGESDRUZ+AZFw1BfN2bxkVr2Zgd74g+b 3Ugw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=71FWYCSYqolUNYdHB6h+7aw1EHmEdZQNjgmLsAFRBRQ=; b=H23Q0BPYR4cgtEoNDOsnsyv/5t1O13DW/azrsxEpTK8QYbwSmAuwRSENBOFfvQlF+y /wZzHQ9EofX7qGEuvtZnCaE1HYQgbLVgTFHxCyri1/Fi1EbQps5jAbSO3R+z4q4a8Ex6 oyCCDIIrteRNEntuHmqVxOh97MhWOxJV6ruby9YCCbq+8PTDNRuF13GJFln8CZAFWmtA ahcpF1vshniHDGOUQLT+L9cU0ALj63Eu6rq+ui7uFVpznXsECf2cQgXdbDN+Dx1FrRbx u0xTTuXo7wFlEItDcHVtK9vTa/zwJKHDplW01+fIgCfgNsZElq5DEyL3mzhcfUauaQ3U T2+A== X-Gm-Message-State: AHQUAuYRwnjG5dGkka3FhGpJ7/mIvtqMsSgLzwG4xZW/tP8sHyKE01ek MKYf9wT4+hCRUtX9aVaQoyTyZnG7/Gi9F5Ier+5eug== X-Received: by 2002:a25:bec2:: with SMTP id k2mr3650739ybm.328.1550846248027; Fri, 22 Feb 2019 06:37:28 -0800 (PST) MIME-Version: 1.0 References: <20190218140321.19166-1-patrick.havelange@essensium.com> <20190218140321.19166-5-patrick.havelange@essensium.com> <20190220164154.00547a77@archlinux> <20190221010931.GA3471@icarus> <20190221082758.GA3380@icarus> In-Reply-To: <20190221082758.GA3380@icarus> From: Patrick Havelange Date: Fri, 22 Feb 2019 15:37:16 +0100 Message-ID: Subject: Re: [PATCH 5/8] iio/counter: add FlexTimer Module Quadrature decoder counter driver To: William Breathitt Gray Cc: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Rob Herring , Mark Rutland , Shawn Guo , Li Yang , Daniel Lezcano , Thomas Gleixner , Thierry Reding , Esben Haabendal , Linus Walleij , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pwm@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jonathan, Thanks for your comments, I'll make a new version of the patch based on your input. William, I'll rebase the next version on top of your branch. I'm glad the counter subsystem effort is progressing :) Patrick Havelange. On Thu, Feb 21, 2019 at 9:27 AM William Breathitt Gray wrote: > > On Thu, Feb 21, 2019 at 10:09:54AM +0900, William Breathitt Gray wrote: > > On Wed, Feb 20, 2019 at 04:41:54PM +0000, Jonathan Cameron wrote: > > > On Mon, 18 Feb 2019 15:03:18 +0100 > > > Patrick Havelange wrote: > > > > > > > This driver exposes the counter for the quadrature decoder of the > > > > FlexTimer Module, present in the LS1021A soc. > > > > > > > > Signed-off-by: Patrick Havelange > > > > Reviewed-by: Esben Haabendal > > > Given you cc'd William, I'm guessing you know about the counter > > > subsystem effort. I would really rather not take any drivers > > > into IIO if we have any hope of getting that upstreamed soon > > > (which I personally think we do and should!). The reason is > > > we end up having to maintain old ABI just because someone might be using > > > it and it makes the drivers very messy. > > > > > > I'll review as is though as may be there are some elements that will > > > cross over. > > > > > > Comments inline. William: Looks like a straight forward conversion if > > > it makes sense to get this lined up as part of your initial submission? > > > You have quite a few drivers so I wouldn't have said it needs to be there > > > at the start, but good to have it soon after. > > > > > > Jonathan > > > > I agree, we should try to merge this as part of Counter subsystem > > introduction rather than as another IIO Counter driver. As we determined > > when adding support for the STM32 timers, the existing IIO Counter API > > is fundamentally unsuitable for representing counter devices. So > > regardless of how a new Counter API is merged, the existing IIO Counter > > API must be deprecated. > > > > Patrick, I apologize for the confusion this has caused. Would you be > > able to convert this driver to use the proposed Counter subsystem API > > from this patchset that I believe you encountered before: > > https://marc.info/?l=linux-arm-kernel&m=153229982404051 > > > > Although it was last updated in October, I believe you should be able to > > rebase that Counter subsystem introduction patchset cleanly on top of > > the IIO tree (if there are any merge conflicts send me an email). Take a > > look at the generic-counter.rst file under the Documentation/driver-api/ > > directory for an overview of the API; the counter drivers under the > > drivers/counter/ directory also make good references. > > > > If you have any difficulties understanding the API, or any other > > troubles, don't hesitate to ask. Hopefully, I've made the documentation > > clear enough to make the conversion of this driver quick and easy -- and > > if not, then it's something I need to fix, so let me know. :-) > > > > William Breathitt Gray > > Patrick, > > It looks like there were some minor conflicts with the v9 patchset, so > I've rebased it on top of the latest iio tree testing branch and > resolved the conflicts in my personal repository. Please pull from my > personal repository at https://gitlab.com/vilhelmgray/iio.git and base > your patches on top of the generic_counter_v10 branch. > > William Breathitt Gray