Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1242078lqs; Sat, 15 Jun 2024 00:03:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVztmzg9MPrndtDuxz46RecLTvhfv62KCWLxDRll++/dP1A6lVJuvXxqgwTnntR73BOgIpsxHjgXSer5jMGPPObrTU6bcKMDDTivvvhvQ== X-Google-Smtp-Source: AGHT+IFqCF8UqN29BKQzvGwVa5JTaB+WtsK2sPf4ZCd068FnBq6woSmvnJ1l5nvu2hYW/K5dOORr X-Received: by 2002:a05:6602:14c8:b0:7eb:eeba:5e90 with SMTP id ca18e2360f4ac-7ebeeba69bfmr392737039f.18.1718434992394; Sat, 15 Jun 2024 00:03:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718434992; cv=pass; d=google.com; s=arc-20160816; b=0jgD+o1SwGd55ZeEvwbE9JmjfvqBkPLU17atT9EB4cZQ3WlmCK/jCKRdseVQo6h8hf y0LdF/6oofHtuo6OGNMTK6gvN/6tMVcCGwVsridhsYamZd1m1imgbbE80g2RppGjnWJm 5rCDRirj4r4qzg5mtvpHFyM/um7L3t+seKynUcuCwAbAHi6mSEbcjKbKsE4kQiU75U1c e/uF3Czxoz1kuEzXD8KfeMV8HjofUp6H7iEMSGDBf26+adqNJ5AUMR3Sm8N6VVagzrPm OOOKUbTHcIvY1Lr1EaBzvdpLyY8/fdPYmVhETtZeQsByrF/rDRfURtenQeal8IbCinEz 1pIQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=mGIFGMyiEP8UcVLdrTaxuW57+qpdlEUzjb0401iGIqo=; fh=TdDbadR3GhpF4qh/fZs1taUMnAXN9lSwHXBIIyd+hHk=; b=oYXdisqItULcFlLeXzjScez0bKZZMxM+EeUrywQe4hDhC+GMAuP4HnvgPPm2ZKdYhE EfX6TsbDXEREwooxCa2QI6s6QIGaBe+AQ2TI+Cph6PHZOU9G5y6uiogP1J5UrMEe63E2 03rs8XAIWjQxYbbz8ebZ/2hOFzZHjB5wqL0B6OXyg9u6LBo2WAdBzbJ1bTwtx+zZCKGx rHBDmA6q2LYR9Cfcoz8C6uxLaXDabLVYU22kiK09XG/ZZ/FRzxXohEBF5Wd1CmwLaviJ v+2RM+J+DJIlMbVPMEQJMbcWl+lwpGFJlvgsvu0Qm8Cs5GSE2CEkucLfATd8rvbeTOTf h8lQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S+f6apqH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-215735-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215735-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-705ccb95f3bsi5188602b3a.300.2024.06.15.00.03.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 00:03:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215735-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S+f6apqH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-215735-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215735-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id EEBAB28351F for ; Sat, 15 Jun 2024 07:02:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ACA8217552; Sat, 15 Jun 2024 07:02:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="S+f6apqH" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D174C4A1E; Sat, 15 Jun 2024 07:02:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718434922; cv=none; b=HzW0IM87aymn/fiHPm7UWX1JTDq1dZB/LO0oN/7pV3SfsRfghSCslM5YSGFGRVxljXoDhCXBb+swDuole1qHCEoVGAevfBLrUYzLTdisfE6LTsuxzFZvoCqNnS0SgVChtd/NL2ZplRDhWQTSM9xICmHNRlai34uiV0aCVpRZ6lI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718434922; c=relaxed/simple; bh=mGIFGMyiEP8UcVLdrTaxuW57+qpdlEUzjb0401iGIqo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fADHAGHJrtChYHH5HRH10kd/AWF6n0nHjKSodJDcVdxfYpOBKxaWJui3YUUIvN/Lk/OObMeLHRzUvUjccGo2RwsKq0kjPxSDiBJdQJBQJ0d0F8NTtFgjY3bKvRK5LMlkNQQrnYnb+5u59ivb+RjuZ27TqTolUxDaghECn8ETLTc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=S+f6apqH; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 386EFC116B1; Sat, 15 Jun 2024 07:02:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718434922; bh=mGIFGMyiEP8UcVLdrTaxuW57+qpdlEUzjb0401iGIqo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=S+f6apqHc7fD94GdW3X2oI9/CYR868p9GFFnIldPxv/rwD8/l8q7VAULcBBfalm5t 78uvdkfCi07ZT6PMAqZEdW8V8e9SsJaqa5x9+CBCu9dRKtcVCeWjiEfa+DTOD8XwD6 knCdpZNy/3f+EaICXaK7J0CF5XBdNRy4yvvyATrY6SJsSZpJ61I1VC0oioi3sT7jTg D9fdFj8b6G+5E6f3dQ9EFXV5/X5eOptkjDXbRIKmQ2cqO9Sr8F0YfyZMhQfrzCjgXo 00R9bvqu19VEOc+G3CBWDex6vVznRKruD3Hnq5VET2x3I1iYmvv5tI8S4D0lhNQtn+ cUWKmh4uTSlyA== Date: Sat, 15 Jun 2024 16:01:58 +0900 From: William Breathitt Gray To: David Lechner Cc: Judith Mendez , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] counter: ti-eqep: implement over/underflow events Message-ID: References: <20240609-counter-ti-eqep-over-under-events-v1-1-74fe1632f5ab@baylibre.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5rDbGY9WaoBneDXG" Content-Disposition: inline In-Reply-To: <20240609-counter-ti-eqep-over-under-events-v1-1-74fe1632f5ab@baylibre.com> --5rDbGY9WaoBneDXG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jun 09, 2024 at 04:49:33PM -0500, David Lechner wrote: > This adds support to the TI eQEP counter driver for subscribing to > overflow and underflow events using the counter chrdev interface. >=20 > Signed-off-by: David Lechner > --- > This is split out from a series that was sent a few years back [1] that > I never finished, so I'm calling it v2. This was tested on a BeagleBone > Blue using LEGO MINDSTORMS EV3 motors and this script[2]. >=20 > [1]: https://lore.kernel.org/linux-iio/20211017013343.3385923-2-david@lec= hnology.com/ > [2]: https://github.com/dlech/linux-counter-ti-eqep-python/blob/3745b0840= 736248d8e60cc675a0f43558fcbb2af/test.py >=20 > v2 changes: > * Only clear interrupts that were handled. > * Don't set default QPOSMAX value. > * Don't error when setting QPOSMAX to 0. > * Use regmap_write() when appropriate. > * Validate watch channel. > * Use counter_priv(). Hi David, It's nice to see progress on this again. I remember there being some sort of interrupt storm if QPOSMAX was set to 0. Is that still the case, or was it resolved with the changes in this version? Willia Breathitt Gray --5rDbGY9WaoBneDXG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQSNN83d4NIlKPjon7a1SFbKvhIjKwUCZm08ZgAKCRC1SFbKvhIj KyjmAP9nNugcU2bKySz+yH49JaVB3/oK58jNapUVdysZL/9jlgD7BFQtFn76eBzf 9qFFPWxCic7ze1h/MK2usH9pMwgYYgE= =qEE6 -----END PGP SIGNATURE----- --5rDbGY9WaoBneDXG--