Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2803549pxb; Fri, 12 Feb 2021 01:29:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJyGKMk+VY85JZzT9L3CGOhR6jxsTQyCdR6DSITPCBgJdK1QQAvmgh4KPGtvUU2cO/HsirJ3 X-Received: by 2002:a17:907:b16:: with SMTP id h22mr2015059ejl.393.1613122169166; Fri, 12 Feb 2021 01:29:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613122169; cv=none; d=google.com; s=arc-20160816; b=AV5KxNUCOyeHs8ujYOXfhMctpNgd4cjGS37ANPv+KQlbDn0hYJTjyfe8/x04LA7yCV xdVQLQV4NiFxkru1ardYqK1F2KxV5Iio0XolFMmmsuBNPMvBRCClW2SuM9Mmvgp8YCEJ FSjuBi+MOQzds2ZQ0+d5yNYD5fPpQ75KeFq7mSesKH1Kd4g6u/fyA6hF9Q5oWoRBMB0u 0tNy52Xe301rocGg+4G+t4pSDBHYqZOfoI/ZI8mH9rN6Abi9lSUFqb+rahqDRkYnqrX0 BsGmsjD0L3T5nVLzD2s7wKjJO0b80CG8fX+IvTeveNEswPSer50eC5+NUOKNkt38isXa j+BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=tYyTdHiOphi5wy20sCohGohSDGJFzJ14qi5hSzM5U+A=; b=Hu8EbnHBqPwfy5DHxRDalMS+S5ZPy0VyIB9w5VrkRU+ZdrQW7olWWhU4hyYGoS5Lw9 Ishh60iOA2VGdGnYVpAIJU8Hsi6KCjIBnyjYYGQnD+Blfg2f6Vi8TrBgWj/PBh1IYdNC 5sHb1GjF1GxquBk+zAS84iS4GQ9+/quN3PbQT/Y/yH/0tP5FzEObPv7ZxJhO6yBOvxKq KWX57bbhjOEvPrLP/+OUQuQj6stxzr3+QMgz8IyFhrJQhbfdnAWemxm1DDY7l/A030fg jeOjDYEYWLFa3U8WWjPxOCEzcpSSvRqWZF82qMmOBvWTfrTbarQuYVHS8JT+PyHp52hD O91w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Wo5odOyS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t11si164140ejs.239.2021.02.12.01.28.40; Fri, 12 Feb 2021 01:29:29 -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; dkim=pass header.i=@linaro.org header.s=google header.b=Wo5odOyS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230077AbhBLJ1f (ORCPT + 99 others); Fri, 12 Feb 2021 04:27:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229948AbhBLJ1c (ORCPT ); Fri, 12 Feb 2021 04:27:32 -0500 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 291BBC061574 for ; Fri, 12 Feb 2021 01:26:52 -0800 (PST) Received: by mail-lj1-x234.google.com with SMTP id e18so10706297lja.12 for ; Fri, 12 Feb 2021 01:26:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tYyTdHiOphi5wy20sCohGohSDGJFzJ14qi5hSzM5U+A=; b=Wo5odOySF/CFjO72mwfuehexVpDt5boeTBrjIi8eYdCX5x91Ji2sDZLyQY0eiM1n7J JR2GkNIaK5Y3PyjM+xg4Dkaublh/xAdcOhoNGhuS5QTsZikUhv+DZprC9Q25ghrVeerl jh2sYwpMfJcWeG1pUt0h6qPLrHnYxwzUpkWdWKWmYwNcWDRRILxxRh/P87sZR8ZIHQMB dqqwC1BFHhlq+4x++uWHc6z4Cl4Pse2K7iluG4dEEQ0pCh6UylDjSgKVkQ2kr/SjbCQo exvFjK6ZWi2hKR9YxMWiLG449QDlyi1psLns9RExwklkzgPexbJ4O198qXtn4aOou7Ff m9zQ== 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=tYyTdHiOphi5wy20sCohGohSDGJFzJ14qi5hSzM5U+A=; b=l7zGFEaQWDYO78E2ud5eB2tXraOrxpCuUeIhOfoLvkiB3b7lF+fiv6gMO/qsUG/2wZ RiVmOSpoyAO+hCRv8UCo1tJYCBuUoHzrPUPe0Sr/OCnNf+QSCtWqljjutnGGyO0ITuQE NJzkoiNgbiUJY0Br6nPMeotcc2TzfY/43zxFnOlLR5Cix+rLEUGvsHjPOT6Pa+xYnkzk ZZBgNpN4Bas7pcWXMQ9mpiQHXK7ZSp8lilHNL73FFw9IbLTF8BfCdT/IE44ZOXPD0gUm i9F98HKL7X0p8OeK/KPIeHypgjoIEMkRaCdHoxaAZiLN5NKfNVjQ4Ru2IciMdCX/SZIX Peow== X-Gm-Message-State: AOAM532EWOdaHhldZ9I4Jgyak40MWlqt0xcLU3DcD7liT3+X1uRwZ7L6 wewEBlBGikSpM5F7bQ3Azt45Rz04m67uhkrEUdy+FA== X-Received: by 2002:a2e:6c17:: with SMTP id h23mr1222875ljc.326.1613122010712; Fri, 12 Feb 2021 01:26:50 -0800 (PST) MIME-Version: 1.0 References: <20210208135347.18494-1-o.rempel@pengutronix.de> <20210208135347.18494-3-o.rempel@pengutronix.de> In-Reply-To: <20210208135347.18494-3-o.rempel@pengutronix.de> From: Linus Walleij Date: Fri, 12 Feb 2021 10:26:39 +0100 Message-ID: Subject: Re: [PATCH v5 2/2] counter: add IRQ or GPIO based event counter To: Oleksij Rempel Cc: Rob Herring , William Breathitt Gray , Ahmad Fatoum , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "linux-kernel@vger.kernel.org" , Pengutronix Kernel Team , David Jander , Robin van der Gracht , linux-iio , Jonathan Cameron Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Yours, Linus Walleij