Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp118370lqi; Wed, 6 Mar 2024 11:41:20 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVv3X9QYqIVlA9sYxMa8m/yp7wfQyc4KgWCVYd6ZCz/iWmYOVWulNC25WO1E0N8RTpKOeVbnL1hPRbTFIEYw+xn3H0ssoXb/TErqUBemA== X-Google-Smtp-Source: AGHT+IEAuMCYWckvlK38BvVrlbgBdjIu+6a6tZHKx+AhzI31R9h367f7ecry/vgd1laRBGcrPYZc X-Received: by 2002:a05:620a:110e:b0:788:4101:3d2 with SMTP id o14-20020a05620a110e00b00788410103d2mr2331788qkk.1.1709754079837; Wed, 06 Mar 2024 11:41:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709754079; cv=pass; d=google.com; s=arc-20160816; b=Y5ahsAgBBYNc0pHWVNqg2FOsXREzHnv7FOgJxdkB6pKHs8xwxaZV6QJTfCuAoxlPZM kZn4l6IGbDNbWCDqKayM+NCBsH+4XQTvlDmc1iW8vkcG+qYmMwwg4QtmtWYqRvQ3bLFD 2DXqaaSTO6X8h7A8QezTiJ5sOlm1Gjm+dIZ2Z4NvTJVDBprhyVr7lXanGwt/DoJuPu/G QWLQSTxTIvm2Se68sMJgXq9BTYF6m4/q6AiFpx5goJ3ClW9C8hbpMwBR4mkztbbVZUj6 ZSonftIAIvg4UGCV8X3ZVu2at5HC1sUaSCPyeu9JqpjUt51iSM5yBne6TMD/jo6vArN9 j7Lw== 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=KKJXr/IAgS9AlJDdgpqcbHwwmBwIbrtKq+tJPd0RqcE=; fh=vnTotY8qWVsPb0HJnN0rVr9noYJaLHRsxtFlxwmICzA=; b=HHVjCB7U2g7pOeDWiKHNHqJX7ZHLlaZp0AtF9NwIwvAybUkuUdA6S0a8NPw7/cR+D/ 9qhxbugyRSQQq5efbsE4xZ263o2rvmMsJjxxg8Kh5ljF/e1vAe+YnkgRmkjr8JW95bZx ZqVDIcstwfg1KxkM+tZnUOf+ND/2C6uuAzT9uLFCnAuU9N5ypcKuEZzDX8e9oXaGKe4F Eygkom8LrweimZkFpQexukW5ttULBNp2ulfwSaqYSi9gzshHdDsZYYA5tESCSCP87tt+ nN+7Fku8WZKW3//G0RT3pn/oRXe4nC/Mgrau3c77sg+DV+Ks6QFMzyl/FQ+GCUy+iJrP iyvg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NNLR6VvM; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-94494-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94494-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d8-20020a05620a204800b007881a590422si10090808qka.15.2024.03.06.11.41.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 11:41:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94494-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NNLR6VvM; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-94494-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94494-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 904E91C20B3C for ; Wed, 6 Mar 2024 19:41:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8D5CA14037D; Wed, 6 Mar 2024 19:41:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="NNLR6VvM" Received: from mail-vs1-f49.google.com (mail-vs1-f49.google.com [209.85.217.49]) (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 3DC3E13E7D3 for ; Wed, 6 Mar 2024 19:41:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.217.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709754073; cv=none; b=aIHmIChn9CJeF5UEe8R2vvg7m+eRsAnpuZ0NhsmiGLnmLiqm12CI4oDKPOtJc9jGl3QR5GgsqTBXHeVw/V0IylEb6shls4d4SsWHXjAbzB2IykMXJCwnoE5XcmEnfrP1sQy5xq4LXeKev7tP4aQf4mgix5K8bOkeKV6lE30Xu/I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709754073; c=relaxed/simple; bh=KKJXr/IAgS9AlJDdgpqcbHwwmBwIbrtKq+tJPd0RqcE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=a55qnU0B/wKqTpctZHc+BkB6V+lZ8kqMfiSI1pEui+soZahOW7tySDz3fW18P7c9OXcmTHpGyRIgZrKtqPfV1vFb7iGPEmQ3o5Msnxw4BhgwHi5+IaoLzjTfRIrNAn22uYzChwLZ/X1Vo8yAtEShXmFw7iT28/E1RpL+jj5ysko= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=NNLR6VvM; arc=none smtp.client-ip=209.85.217.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-vs1-f49.google.com with SMTP id ada2fe7eead31-4727e38ec10so32246137.1 for ; Wed, 06 Mar 2024 11:41:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709754071; x=1710358871; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=KKJXr/IAgS9AlJDdgpqcbHwwmBwIbrtKq+tJPd0RqcE=; b=NNLR6VvM5YDs+X8UGYbmIIn2zOPQ/+iBIFrH3hMIBuza0waQh89wAUZMNPebLewIa7 QyAxWpJd1eObLLkR9k69Sc2v6UTqvlbvSOORj4UTqyjK8X9xTMXoyes/Nw0Rx5pBxucn fAiLwIjQaK4JgGnkU7x14A9gxjgCjhvAgVmv4rZ3cf3cIg+yDtf7lihY3C9snFfMkdWG 4fCfDEz7+5SRXl+IdywHijEps5Upzkf6qcRwDaayp4cqRFN+SmDFD8QUSnquTNUQI8i4 wI34sA0rohoBrdrHNZeURmy1J1xEcwtcAyNTNd8OAXcaSB8MC+x7uc615LyE1xaY7v2I YFCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709754071; x=1710358871; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=KKJXr/IAgS9AlJDdgpqcbHwwmBwIbrtKq+tJPd0RqcE=; b=wSKfAHZC8lnxk7Z+JZyXvzmx8E27wiHzJggjWyh4nbjL1GYpwpiDNHaxsU2RelhG4a 6BZ++HGFRniMRX0Mx6nb8UuBjzCMnrASQJzJrhPortxh8chqenECRMxiXUxufkKoGew6 grG2F78iNcElg94E+CDVsmit+AeRviy4KdsmBSuK5v6eV9nAqE7IrW0C/q7m98aMw1HJ Gxi8RA+LEdixWsFxWpuSH9zzkPv+xEGNYx8ENz39+iSMXW8fIvYc8ywwWEAartfIOxmY nfuSVgZGV5MxQqkV4jegrK1eietI75kdkHdQJ4Sx/LNtZ0QAp4VqDQOhvCDgm15nFyqw fgBw== X-Forwarded-Encrypted: i=1; AJvYcCUS2Kh7ye+HUtpavXKpmlVXTYWtRLT9dlL6b+RzWdbHUgZdknFWLlc0uIjv4F0ueVSGA2dwyPdl6OquGnNladmOEAEvLYSwlH+51nQU X-Gm-Message-State: AOJu0Yzm8JEAYLU8kyocn9gSgBVnqNYz+kmiLukkPNQPA4CJQz/hqgoN lC3U0K1CjkPH12A4HOxrnANzk+6vQQtcw4MO33xOlSXR4ZbiCBa5/kIyqNqNNIM= X-Received: by 2002:a67:ee52:0:b0:472:5960:9e9b with SMTP id g18-20020a67ee52000000b0047259609e9bmr5925192vsp.29.1709754071236; Wed, 06 Mar 2024 11:41:11 -0800 (PST) Received: from ishi ([185.243.57.249]) by smtp.gmail.com with ESMTPSA id dg17-20020a056102571100b0046ee0e665ffsm2323364vsb.2.2024.03.06.11.41.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 11:41:10 -0800 (PST) Date: Wed, 6 Mar 2024 14:41:08 -0500 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 v4 11/11] counter: stm32-timer-cnt: add support for capture events Message-ID: References: <20240227173803.53906-1-fabrice.gasnier@foss.st.com> <20240227173803.53906-12-fabrice.gasnier@foss.st.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="/7E2qpchrMeFZ+eS" Content-Disposition: inline In-Reply-To: <20240227173803.53906-12-fabrice.gasnier@foss.st.com> --/7E2qpchrMeFZ+eS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 27, 2024 at 06:38:03PM +0100, Fabrice Gasnier wrote: > Add support for capture events. Captured counter value for each channel > can be retrieved through CCRx register. > STM32 timers can have up to 4 capture channels (on input channel 1 to > channel 4), hence need to check the number of channels before reading > the capture data. > The capture configuration is hard-coded to capture signals on both edges > (non-inverted). Interrupts are used to report events independently for > each channel. >=20 > Acked-by: Lee Jones > Signed-off-by: Fabrice Gasnier Reviewed-by: William Breathitt Gray --/7E2qpchrMeFZ+eS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQSNN83d4NIlKPjon7a1SFbKvhIjKwUCZejG1AAKCRC1SFbKvhIj K3DwAP9JgKrctTyHYndvFGfvRBz7a0xr6aDBY7DMfn5Cd+yMRgEAtVnZbcuUt76/ QGXXSQ+ceWI8oq9r9tubyWD2rrCO7wI= =CNt0 -----END PGP SIGNATURE----- --/7E2qpchrMeFZ+eS--