Received: by 2002:ab2:3b09:0:b0:1ed:14ea:9113 with SMTP id b9csp94855lqc; Thu, 29 Feb 2024 11:15:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWrc6xoGSuaBk2B3SEZEmyTU7MvjdgkaPpuYu/PDpwZz7TVcD/FGdFUM12klI8O2yWhgC6fS4VrkpkA/MEqRpSk7xOuko0g1yQPz//p6g== X-Google-Smtp-Source: AGHT+IHFEzuR0uR2Pws2jHyZCySKGW9ycWSf+SmuDDV92nWDQPry11G164guarhmfBhEzuymJbJZ X-Received: by 2002:a17:902:d501:b0:1db:d184:c458 with SMTP id b1-20020a170902d50100b001dbd184c458mr3525809plg.44.1709234122408; Thu, 29 Feb 2024 11:15:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709234122; cv=pass; d=google.com; s=arc-20160816; b=TEIrFFcodPNs/zH97f2/EO76vSVsQl3lImuA34641BzAZRs1UymJ8+ksQONH2FqPaL RuBYbwc0Gqu739OCwPcxRQDQuvdlFwzrNDOFxxWOxbQvK7tpQR3X+j0mMK2yt0cGW3iu tyMekHdt2qBvOU/CY0JaXyCq6KfGFYiSrSaB12rzv7bDzUhGZRccFyLQhfPSRruvF1mG V6aOBfa6x/tAsIUwYJf2KQQ3UyQQXWx1kjS+DYR6M9GoXTFhqo2SSvcqIKI9l9CIEM6C w/BJV/JROSplQOv4mrwA/+t1/u9jyPUnUlLVfSFW7EIDIZKvwblDx2XsBolelLvjMPL+ F5gQ== 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=6C2bXPH86iM1wIE2+OdewUkS7BtP29sQZelrAG7pDTU=; fh=9cemHdm6JGi383ygsWr3H9+mYnNpK9asqYUilS/EEpg=; b=qGvXNDk7c1fIeYaNJSq1FHjCKyKHjD/4jg7IYovPFeUFITEJxGM8pVwLIXWub6pPZH rxNKiGcRZd8/lePncOHOVrQwy0J4LL3UCOYbY4w78jMFLCJsSfZCsIltBTnNL+Tnl5GW dXC16xWvUE7fQVsgK815PWvB8zq2q7K+OVxdSEaOwaZQYziOnzz9Eic+uMA0nzQM0kJ+ 4NoXndB8ly5+sgoJHycbwxRs9qZZS6qVo+aN7mQW+KPWQy4G50KPx/QUf9UkTJX2R4cM L20CoWW4XTN1eWRq1U+3ohlR78bGh6YJyot6YX2eJ8Je/G1MxEPJnRMlE7RYy4GwgDqW yBxQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kxnjBHj1; 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-87325-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87325-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id c15-20020a6566cf000000b005dc4202b409si1892298pgw.212.2024.02.29.11.15.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 11:15:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87325-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kxnjBHj1; 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-87325-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87325-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 44484B21F1E for ; Thu, 29 Feb 2024 19:07:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 99C6F2E3E1; Thu, 29 Feb 2024 19:06:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="kxnjBHj1" Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 D468179933 for ; Thu, 29 Feb 2024 19:06:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709233614; cv=none; b=RfAYoEN3Ba3NxK6znJ3EViaSMoXXSpuw2r14OtpWm4SPFyS/6R7/LUOvkChXFP/6DdqX1ACEGHfOWX6CclCMGzWViKaOqZkuqeMfWZl5RPSwt8KDZfO2kZPxvWJ40mVgCe4Fi/AyGGS5+ju0IUOQ7OjMSEl9XlbRVNlNIThPjP4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709233614; c=relaxed/simple; bh=cvBzs9lLYilkxC4ILAVJnxBxncOeLsaV186D3Cgz1VY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Z6rNTrUmejvwSJnERatHhZkcoc8r9NcywktwhEDU+QTjeCf1EM9UoUtH18twwmC2lLAiMaSDJ6Grx5TqMDyc4kH4yFBJHThORWQiZTGqs8m1AnGNwxCvkFCN43gfYQmz1pmcEKhDc0tcxMl6hrsNqIQYFgh2YE6EWnUU1mRKAQE= 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=kxnjBHj1; arc=none smtp.client-ip=209.85.221.53 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-wr1-f53.google.com with SMTP id ffacd0b85a97d-33e17342ea7so276104f8f.2 for ; Thu, 29 Feb 2024 11:06:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709233610; x=1709838410; 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=6C2bXPH86iM1wIE2+OdewUkS7BtP29sQZelrAG7pDTU=; b=kxnjBHj1tFt9eBvtoCdD6PuI740LcU8GMuo3Oek8GTCSo4BdNZ07ydaVgf7DXUhfD4 JfxdXZxzLhb+pF9Id1LMkI7I3vs5Jb6DBl6kfVUPK01+y9aQqJsgev5UfCMCahIdHvGF fd9vC+CF7mE1nfRGaR9Bm29JGwMGLk/JCqr2yCtPcSX8P6cv+/XSPC0x3gr58wX3NzWm MgK3C3GtHrd2OIHceDzOXxab0ab0IRTVM81ABSASIbLZWQIcryh+2tnpKIZDQwkYjiXG 0976SSIlgIMK6rjnGqembA5VR82ylsI8YSRxJtLNpXbk/d8Gvagg0rsC5u6ecztoNiYx xZ+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709233610; x=1709838410; 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=6C2bXPH86iM1wIE2+OdewUkS7BtP29sQZelrAG7pDTU=; b=AS1PDkemZiq7gZ+dFRAhQG/mVp+bFgESWIOpxNE88eDkiOgE6ZYRcahq2QsBSpMnVZ 9SDZTOFxQs25ZTHwMJ8V0fK30tTfZ15incyD2Tt6Jrm8zSpBhytbuzALhnmN5qAX92p0 cmu46saMsd/8vbEiWgMxet338CwPhHRWoehgbcI9+MSuyaj2X8qh4dv7ltR9pTeWFiZS JMw/wZHpQku0drhQ1H+cy6WZzz13+q4koL86Eooq8UmeFQ0QCy3BH17m9w5vvflz+4U4 AQ0ClyFifMei1fELm6AijEG0PR2R8oIoKVRyZtrMiorLBxP48V3jPol+/4IWN8VqVpLU cCMQ== X-Forwarded-Encrypted: i=1; AJvYcCUX5ubEMoysFA3FGbxO9gJooIaV4+FM+utg/AJJFVp7MwG8jnOnDjZ2HCQBpBHgYH5F7JGGJ4d8BC0q5lmMu1eylh02ivxoNNidqj3n X-Gm-Message-State: AOJu0YwIHg8mpbrMEv5dzOzapZm5SWbvvCIF5puafmZSsBGLpVuq62bF NzNO9dX8XhUg6WeySQ/2h4IOgLF6IylD/92Mc0Uq7UgguE+6pbuGxmUrNxSQ/nE= X-Received: by 2002:a5d:58f2:0:b0:33d:29c1:c28c with SMTP id f18-20020a5d58f2000000b0033d29c1c28cmr2219550wrd.66.1709233609591; Thu, 29 Feb 2024 11:06:49 -0800 (PST) Received: from ishi ([185.243.57.250]) by smtp.gmail.com with ESMTPSA id t1-20020a5d5341000000b0033e11acf84asm1996039wrv.15.2024.02.29.11.06.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 11:06:49 -0800 (PST) Date: Thu, 29 Feb 2024 14:06:43 -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, Syed Nayyar Waris Subject: Re: [PATCH v4 01/11] counter: Introduce the COUNTER_COMP_FREQUENCY() macro Message-ID: References: <20240227173803.53906-1-fabrice.gasnier@foss.st.com> <20240227173803.53906-2-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="m8RbYN6cnf/6A/iU" Content-Disposition: inline In-Reply-To: <20240227173803.53906-2-fabrice.gasnier@foss.st.com> --m8RbYN6cnf/6A/iU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 27, 2024 at 06:37:53PM +0100, Fabrice Gasnier wrote: > Now that there are two users for the "frequency" extension, introduce a > new COUNTER_COMP_FREQUENCY() macro. >=20 > Suggested-by: William Breathitt Gray > Signed-off-by: Fabrice Gasnier > --- > include/linux/counter.h | 3 +++ > 1 file changed, 3 insertions(+) >=20 > diff --git a/include/linux/counter.h b/include/linux/counter.h > index 702e9108bbb4..03472d7407de 100644 > --- a/include/linux/counter.h > +++ b/include/linux/counter.h > @@ -602,6 +602,9 @@ struct counter_array { > #define COUNTER_COMP_FLOOR(_read, _write) \ > COUNTER_COMP_COUNT_U64("floor", _read, _write) > =20 > +#define COUNTER_COMP_FREQUENCY(_read, _write) \ > + COUNTER_COMP_SIGNAL_U64("frequency", _read, _write) > + > #define COUNTER_COMP_POLARITY(_read, _write, _available) \ > { \ > .type =3D COUNTER_COMP_SIGNAL_POLARITY, \ > --=20 > 2.25.1 Sorry, would you make one minor change? The "frequency" extension is read-only so there is no need for a _write parameter (it'll always be NULL). You don't need to rebase and submit the entire patchset again just yet because I will likely have more comments when I review. Just submit the next version of this particular patch separately and I'll pick it up so we can get it merged into counter-next. Thanks, William Breathitt Gray --m8RbYN6cnf/6A/iU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQSNN83d4NIlKPjon7a1SFbKvhIjKwUCZeDVwwAKCRC1SFbKvhIj K5a/AP9ESChk0LtM25VBIa/YG3unlk+bBAuqQsCttKitBbei5AEAnS35RlwlEo91 tAqqQcOWaRtMdGXsFtre4ov5nr6/HQY= =Az87 -----END PGP SIGNATURE----- --m8RbYN6cnf/6A/iU--