Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4763813pxb; Mon, 15 Feb 2021 00:00:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJzg6iZZFB5NGja921QZoY2iJnx59RnMJ/rgKj2OfR6VLKQXzJrbvTWpxvsVzdNPJYdbmk0u X-Received: by 2002:a17:906:4349:: with SMTP id z9mr14582911ejm.471.1613376031370; Mon, 15 Feb 2021 00:00:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613376031; cv=none; d=google.com; s=arc-20160816; b=Gvn1Y3tOR7vsmk52HDHnqvrrBD8fJnTiww6fEvb3iPGsPoq9TdEbNOs3IDFQ1zSTV/ 3ghxJEtSlCuRQRjPdnVY7+RCyrU3i6BRuzn6yPTTeeSmG5wosgC26Jq0zyBnlJGiuACE mTgQAYxizEp1KSjK2JiVJzhYmPdl7C+G9P6iWy1dAr4zk8rtlP43YBL8SM8mJDpaabuY QynG6CiuA8QFiB1Cozy2dyVh/8PZ21sAU5FceVdUBXvemL6URhd2/lhw6V4C/iWL2sNW K/2EjFxvTKm9thiSaMOD7Cc1G/vhL3Fs5pqEfZbstWsyThDkMWDIaR48EIsXG/uIGqKD Dlpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=J83QQsmhBn6LARyYb2xEicILcobVADtQeTuwg1Ph93I=; b=iNmOMr0/PSoxjypkB+8b4IGoFb6DouxeDuZYDmuJY3nvddAa8E5e/lY7wExkhD/q7G DLbYGQZXhCYopwTloDPqifbF9jvPV2TX4IgRfrRJBiJmQsfz0BFN9Hlzgdm/Tv4EwyQi u2p1OsfQVZqG2KYrLQaA+FJSqaLgD7AmAEOQFlqxAY63P67jXGmy/58wSE/OGibW7w1l BoMaJCLzu7XM8jbvE0Ztb6mcKf1gttWNey17xda679rnn04dz8MCypafU7mngqT5Y6t9 O7iEfrllY801hPTwnBkjZeP7gRcmj4nR329cmDPvuHOjdmxxEwAo35qewkjtU7w16i8f PrgQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o6si1976422edh.21.2021.02.15.00.00.07; Mon, 15 Feb 2021 00:00:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229964AbhBOH67 convert rfc822-to-8bit (ORCPT + 99 others); Mon, 15 Feb 2021 02:58:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229943AbhBOH66 (ORCPT ); Mon, 15 Feb 2021 02:58:58 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19F51C061786 for ; Sun, 14 Feb 2021 23:58:18 -0800 (PST) Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lBYll-0005Rw-TF; Mon, 15 Feb 2021 08:58:09 +0100 Received: from ore by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1lBYlk-0006DX-NP; Mon, 15 Feb 2021 08:58:08 +0100 Date: Mon, 15 Feb 2021 08:58:08 +0100 From: Oleksij Rempel To: Linus Walleij Cc: "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Ahmad Fatoum , linux-iio , Robin van der Gracht , William Breathitt Gray , "linux-kernel@vger.kernel.org" , Rob Herring , Pengutronix Kernel Team , David Jander , Jonathan Cameron Subject: Re: [PATCH v5 2/2] counter: add IRQ or GPIO based event counter Message-ID: <20210215075808.cir3smhrikrxfv76@pengutronix.de> References: <20210208135347.18494-1-o.rempel@pengutronix.de> <20210208135347.18494-3-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 08:57:30 up 74 days, 22:03, 40 users, load average: 0.08, 0.02, 0.00 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 12, 2021 at 10:26:39AM +0100, Linus Walleij wrote: > On Mon, Feb 8, 2021 at 2:53 PM Oleksij Rempel wrote: > > > Add simple IRQ or GPIO base event counter. This device is used to measure > > rotation speed of some agricultural devices, so no high frequency on the > > counter pin is expected. > > > > The maximal measurement frequency depends on the CPU and system load. On > > the idle iMX6S I was able to measure up to 20kHz without count drops. > > > > Signed-off-by: Oleksij Rempel > > Reviewed-by: Ahmad Fatoum > > From GPIO and interrupt point of view this driver looks good to me. > I don't know about the userspace interface etc. May I have your Reviewed-by? -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |