Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1459939lqs; Sat, 15 Jun 2024 09:31:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXsJu5nMXAWy9wIFuyBneJQAZ13d4H+DnWe7DT00tJkuKCIqWStGDw/JEPwRZKbcBXmqsWPeUc+bblNT4wibS6sPIMC5L96RyM08kDQDQ== X-Google-Smtp-Source: AGHT+IGPelWp2NpQyMzHaqCNuwIeeFLG3CuLpQxWC4VuUI1iuvWGffij/6oiCIBvP998KWFWwzfR X-Received: by 2002:a05:6a20:9147:b0:1b2:b191:b05a with SMTP id adf61e73a8af0-1bae821f6b0mr6124145637.44.1718469074121; Sat, 15 Jun 2024 09:31:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718469072; cv=pass; d=google.com; s=arc-20160816; b=aE9RgIQggHQ0XuhMXAC2wrzjEdWbrwy4++NMxbt3cELvKvvaHo6HUkLw8QTZIprvya VBNgjMsFM7IETo6yHhpJBj9HVhdcp+oRyJpFA/B3uwuzPh6uDWyxQvoVqZNhJI23Qpmz r+zj++QG7JjcPSrSBPOxjDHgn5c/wUKmslPnQ5dz0SHRSvB3Mxq5JCY9iC4UfivqzKMt Kt+nRsGw0o++eKh8RM+afZ2XZON3qYHDMwZ7ZXeNJXCqjKHYjF8Y78T2Cn+56s/9Hlb8 Sq8rJbM8VaQTAd9/UBsx7oqaE8NCjK7Ur3bFURRyTUmQY8lZVQXkZcl/ww65Y3mFjpl5 Mhew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=FeiXgqyhT/QZGQjBMNx/jn93Qfipagj532oIUhz8rF8=; fh=ZsfmLw3SZjpITn4yVdpy7rpk+CHaBF07wDe1Uv0LX/I=; b=cP6AZJ3+92J4sO9vYEwvLqjIRSPCHtVbn1P610Fce0efnbcHcJWQXwVwTa0lOyDXMS Xq49pBUX8HNaszcw2ZLivPKoE5/TxoZiwf381rahk45aPOGdgH+07j5jlLh+exBdrNXM 2yVq4WDHcmsw/6U6ikZK0qUKbn7/Fu6zRFbWnsFhBO2bJRC3zLlboLHrvSseGUHyKpb8 oQvIF/OXw7VO1XRlvPYDWLTEChW6pEwTd1q2+dzYopygQb+2xNNAvEPyIhPyMCeu3y6d d26zT+0DNKACfQFkcqGF8Oykff1HRxkYEqI8g9suabVP7isfo/4VzplnqJNtYYU+x1th oNjQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=vYWjgOww; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-215933-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215933-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-705cc8f6169si5644935b3a.49.2024.06.15.09.31.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 09:31:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215933-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=vYWjgOww; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-215933-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215933-linux.lists.archive=gmail.com@vger.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 E629B28346F for ; Sat, 15 Jun 2024 16:31:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4973E4962D; Sat, 15 Jun 2024 16:31:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="vYWjgOww" Received: from mail-oi1-f176.google.com (mail-oi1-f176.google.com [209.85.167.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A6991DDC9 for ; Sat, 15 Jun 2024 16:31:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718469065; cv=none; b=nrbTwcXhFNmfW1cTnp9PRbg57DxRc/RY6nbM82xzYT/7HCdXcSSBQf8q3ffOUsqFPwwtdLsL1YKqH+hpUEhBYpeveTd19D0NfBDYeEz5aSJXBsLegewzAMUhoVBReMUAzHkfH8JN9hQs1MCCl1CU0JZr6RuvVrgafIbnNudR4o4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718469065; c=relaxed/simple; bh=7VZx2zIx3fKKcO70Bfua49T3IcTFqL70s9M1O/FXukI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=neRqQRIhOkZk9z0Brnmo16TgLgtN44uMPumuNK/o1bL27378EqmZ397NV/RGjobKBNjUtK1uC4AfF5gUvJCjPtBstCX9KQTrotf3VSo+5li2KXeM3/30/g3Bp+9EwsoVAUB0nCYKvEnHUV/7azEue1HGW4DmAuWPaFqwUuI5ddA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=vYWjgOww; arc=none smtp.client-ip=209.85.167.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-oi1-f176.google.com with SMTP id 5614622812f47-3d227b1f4f0so1674976b6e.3 for ; Sat, 15 Jun 2024 09:31:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1718469061; x=1719073861; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=FeiXgqyhT/QZGQjBMNx/jn93Qfipagj532oIUhz8rF8=; b=vYWjgOwwzODVWhBCRn2O2nx//GtyAyTaoH+L2P+GRoVHYekObKclzsOGUJYS4z+gHb xYLy4QaJdQs4xjXCQGa0frex4LYhzBeZXb34jeQ8Cfe/8UdkVxz3xDUDqBkUlZcYzkyj xJmLlc6F2TEfIoJ7oex8TBzES0IYj5h3NwdLJLWuDys7eUM8s/0EQxn2XlbNByWwzFQK Zn2sd2EXo6iq3dXCR1nn/dj9ISW1kKwF1Xy9JjUZSyDrOZt7bqmVXQ6/0Xk0fSv022l7 bbrrIT65ufKfd+xstsAa/PynqEWgUXUzYdn5mQFAssjQhzmx1sYZtjZjPiqKiegjnzM6 KzZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718469061; x=1719073861; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FeiXgqyhT/QZGQjBMNx/jn93Qfipagj532oIUhz8rF8=; b=taIFtZpEGYSkDGuzC0nxpPFXne9bLXiaSN1gZUvUQGHI5O4qVNLzQLI6m8OGw4ZVDK Ec1SP40yrXJ1cfV3GD7O4ekQeiO+HQ5wCJHrisvnI6R3lJdsECgrmI1WmateQCz8A/mK LuPbAxQ7X+sE0V+pEyZVgS5BX5bX24qJj+lzNjegmTan4l00yObEPhoaiPA79nJa94dq qyMVR5E53H7ZVL/gUTDfiAEnpAcHbP5zH6TByi4Go1ghGtPOmxv6qnrzeLb2Jh7HdlXq 0rQFLJBaKmTgJdbyPWG0hCoPppfxbB/J6j+otaKfl84+kbRdoFmdYrzY7RmiAB6fzJQI TwIA== X-Forwarded-Encrypted: i=1; AJvYcCVD/F0dW/gkfCy/mMybBzysiVlEiOiNbChyTwscLClIZ+alo2x/cRGbpp81/Gju91/la0yL66eHU6APhG31v1ctoyqd5/aQuwFQJmMi X-Gm-Message-State: AOJu0YwTStCYIg6OkxdKPFuaj9E+619yzIcx4jzuPBR31IRI7/5XlTNn CMDAoeplzCQvaGXenfrEDgQMMYmBH+WGPgIv9DEpIDqe36NqEd8GFh1YGHMd+ak= X-Received: by 2002:a05:6808:130c:b0:3d2:2d1d:3786 with SMTP id 5614622812f47-3d24e8ef7c7mr6367451b6e.25.1718469060952; Sat, 15 Jun 2024 09:31:00 -0700 (PDT) Received: from [192.168.0.142] (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3d24762eddbsm961125b6e.30.2024.06.15.09.31.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 15 Jun 2024 09:31:00 -0700 (PDT) Message-ID: <21aa7ed7-6440-437d-a591-0da8cce4bc00@baylibre.com> Date: Sat, 15 Jun 2024 11:30:59 -0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] counter: ti-eqep: implement over/underflow events To: William Breathitt Gray Cc: Judith Mendez , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240609-counter-ti-eqep-over-under-events-v1-1-74fe1632f5ab@baylibre.com> Content-Language: en-US From: David Lechner In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 6/15/24 2:01 AM, William Breathitt Gray wrote: > 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. >> >> 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]. >> >> [1]: https://lore.kernel.org/linux-iio/20211017013343.3385923-2-david@lechnology.com/ >> [2]: https://github.com/dlech/linux-counter-ti-eqep-python/blob/3745b0840736248d8e60cc675a0f43558fcbb2af/test.py >> >> 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 I haven't tried it with the rest of the old series yet, but with this patch, it is not a problem to set QPOSMAX (ceiling) to 0.