Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp1468901rdb; Mon, 4 Sep 2023 15:34:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFWmyusSCAgQSqactTQMCJFNBZAHKLtvPsQSHuN0u0cS6G8t1oG85pbbg3/X/JHVwo6nk7d X-Received: by 2002:a05:6a00:2196:b0:688:48be:50b4 with SMTP id h22-20020a056a00219600b0068848be50b4mr10216576pfi.16.1693866841668; Mon, 04 Sep 2023 15:34:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693866841; cv=none; d=google.com; s=arc-20160816; b=fAOhIXugP5PzjRfgq/2GmtMuj2TLp9vQrbqluQ1NkfPhEuladbXIBZZTkLbg0YBj/Y arxjqxw4dksh4qFm6wldFIY1ykT9P9NauJIigSSreeB/BBI1WKDa21r0IUEZrNzM14sG JdnV74E6Gje6klJEotYGelDVKFrvwh2xTlmeMym+na8MY6TnK9/RRVeqRspviLrHg38g kiRTnTAduxQPcPVNlBnXhePYyjZ+wYqLOhGVoF5GzflFPW7zF2FTfCfhV5hUnuy2lxnE Tezmba7dqj286AOqIHneoyPa+KDwgdtMdcgN/mqyUKuGEMUUcz8BVVCoOz/3QjyOsZO7 Bn1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=U6y9ZSHgmMv7ysW5PPwxu3sov/F8TkHZquKhhyfNXcM=; fh=wT9Q6l4w0nN9BZc2VSxa7kC4ae7opG8tVDMNxCIfbBM=; b=Pt8qbkoFxBRsF9EjtdxB9QItgYZDQOq4kknKqYH17fOoqKAg/ggVmWRN9iFFmtumA+ XQ4vbVtMqK0czG8sUz9L4x/ZWer4yTENwdsMxcjHpv4xYsEEy5tRj3c5KLjpZGLMAU1S FmMRyzENqhNbK8xWxogaR6kW9S9Nud43uvQY4Dr7UKPWRjUuu/SxDT8N7dZWcZPRpZyd 5YWXfvZWDOJgNvnewqiawPoUHiKR7/YlcgUTMhsRQ+Gfl2Zf0lbFIqdLQbaS8JDI3jno 7LYputAcMOt6KFvSUEYmeTz2mp0KnIOxW9lUQy5WK/A8TO9HTq92OeL6H25jVbL42iQ0 pwkQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ei55-20020a056a0080f700b0068bdbb23244si8158279pfb.290.2023.09.04.15.33.49; Mon, 04 Sep 2023 15:34:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234115AbjIDTdP (ORCPT + 99 others); Mon, 4 Sep 2023 15:33:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237909AbjIDTcA (ORCPT ); Mon, 4 Sep 2023 15:32:00 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFA9ACCB; Mon, 4 Sep 2023 12:31:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 4030CCE0FBE; Mon, 4 Sep 2023 19:31:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97A86C433C7; Mon, 4 Sep 2023 19:31:51 +0000 (UTC) Date: Mon, 4 Sep 2023 15:31:49 -0400 From: William Breathitt Gray To: Fabrice Gasnier Cc: lee@kernel.org, alexandre.torgue@foss.st.com, linux-iio@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/8] counter: fix, improvements and stm32 timer events support Message-ID: References: <20230829134029.2402868-1-fabrice.gasnier@foss.st.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="CVt1obDrKjorrKCm" Content-Disposition: inline In-Reply-To: <20230829134029.2402868-1-fabrice.gasnier@foss.st.com> X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --CVt1obDrKjorrKCm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 29, 2023 at 03:40:21PM +0200, Fabrice Gasnier wrote: > This series combines some fix and improvements to the counter interface, > found while stm32 timer counter driver developements. > It also introduces a new tool that can be used for testing. >=20 > Then, it improves the stm32 timer counter driver by introducing new signa= ls, > e.g. counting frequency, and missing channels. > It also adds support for interrupt based events using the chrdev interfac= e. > Two event types are added in this series: overflows and capture. >=20 > Up to now, stm32 timer counter driver focused mainly on quadrature > encoder feature. With this series, all timer instances can be enabled > for simple counting (with overflow and capture events). >=20 > Fabrice Gasnier (8): > counter: chrdev: fix getting array extensions > counter: chrdev: remove a typo in header file comment > tools/counter: add a flexible watch events tool > mfd: stm32-timers: add support for interrupts > counter: stm32-timer-cnt: rename quadrature signal > counter: stm32-timer-cnt: introduce clock signal > counter: stm32-timer-cnt: populate capture channels and check encoder > counter: stm32-timer-cnt: add support for events >=20 > drivers/counter/counter-chrdev.c | 4 +- > drivers/counter/stm32-timer-cnt.c | 585 ++++++++++++++++++++++++++- > drivers/mfd/stm32-timers.c | 46 +++ > include/linux/mfd/stm32-timers.h | 26 ++ > include/uapi/linux/counter.h | 2 +- > tools/counter/Build | 1 + > tools/counter/Makefile | 8 +- > tools/counter/counter_watch_events.c | 348 ++++++++++++++++ > 8 files changed, 998 insertions(+), 22 deletions(-) > create mode 100644 tools/counter/counter_watch_events.c >=20 > --=20 > 2.25.1 >=20 Hi Fabrice, There are a number of precursor changes in this series that are somewhat independent, so I'll be taking some patches separately to simplify things and review this patchset a little at a time. Thanks, William Breathitt Gray --CVt1obDrKjorrKCm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQSNN83d4NIlKPjon7a1SFbKvhIjKwUCZPYwpQAKCRC1SFbKvhIj K3XrAQCnJXaTzbk3S1ZQotXMnidjHAeezrMw2IP6V2HkdsTgeQD+IwiZkXrVD0n/ fcBlRITVdLaPEwU4OA/RUVBqbs83ZQw= =/BPa -----END PGP SIGNATURE----- --CVt1obDrKjorrKCm--