Received: by 2002:a89:b8d:0:b0:1ff:3fb7:5d92 with SMTP id br13csp24025lqb; Sun, 16 Jun 2024 06:52:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWF7OkLG8Xk8xwrRJKJL3bg860wReI6B8uaNAS+N2tYhh/vDLw57FPGbcNUXsa937hyP3LDWnO0vG6KjbKIrqr5bZL61c8fJLXLroFOYQ== X-Google-Smtp-Source: AGHT+IEwSpDuWnPh8rBrO+ckM4M3/NnidBtCpYooKLcg1rR5qPFgPBAvnBFAsysVFOpxdx5k1V9R X-Received: by 2002:a05:622a:130a:b0:43a:b542:d1dd with SMTP id d75a77b69052e-44216af8850mr74816221cf.36.1718545948903; Sun, 16 Jun 2024 06:52:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718545948; cv=pass; d=google.com; s=arc-20160816; b=B/ZFPEj+ieCq8cIGf+f4GCsKgLANgqV7YJ6/nxbF5zQ8JkX7KNQe2IQh+fuPDnL7Oc dymeRqT8mMsA7pgbP8iHnha2YEtTe9ecO17IwGHOpbDjjo7xHco+4jWa8bOS+JkhJUHN bbpRaxFjUGG7l9UPIIOR/F5iwTTh8SYgKcux85Jpt/XZECEKNnOZvh8kw17ctmymAc4W 5Ov4NDnbNCGsc1oVGKrpIrgJbELFvD/NqZTYdCVkgWETPWkqPHhcRMXa0Q7fd/NN4TZX V5cifWyq48sC0UuFqSvbnMIH8peWDYkuZeT7+08prU3b/13cj5WEhJwj4vA4WivGGegw D2Nw== 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=aVJOf5/S/BQ++7Tmt06zBPeufq5XHjAatccdENKQCfA=; fh=aAgN3Rvkh+DO5NThn7+qMcN+BD7FtcMfeJMd4Zdgf5E=; b=ZZ0pjfpgqDr6Zv2fHk3ebCCP2KXBG56ElC/10IhXxmqX5ubaWJI1Hyef/qsyc3xebc M4C0nSS6CAfwt8/2bLqSJs9AD9xoRrcxVAPPi6dNDd5UZJ6L6Jb/Hz/2tTWHEf5wEgd4 sbQLjIReRy1pChsbgU+xfNRU1zUTq3hY7m6pfZgsZwbRFFosnH1RYod2n0hCvNLwjDwq 2vS5pXrlZzTBFR9XimPLLH3AMM0Oa21yXG/AeMdLu8jd9yb+KLW7tLVHSPWRYizGunN8 WYV/bKzlXH3t0JfVKgtQWOYYSxpjoVIDsRFN/YssLbgOfzE9ke7yeU1MNGwPscDfqzNe iHyw==; 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=ZLO0kew2; 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-216317-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216317-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-442133fc9f1si77227361cf.24.2024.06.16.06.52.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jun 2024 06:52:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-216317-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=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=ZLO0kew2; 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-216317-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216317-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 862521C210F7 for ; Sun, 16 Jun 2024 13:52:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B25AD8BFF; Sun, 16 Jun 2024 13:52:21 +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="ZLO0kew2" Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (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 3D40279DC for ; Sun, 16 Jun 2024 13:52:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718545940; cv=none; b=uIR0Qbcgu0VNQQxi8dS9it/u63SZrRxDw52vzpI0gim4okvrpmQEU76/Tueuyc8lYv5PU4KgbrYTInZHeg81ONbQRXDzGgP6rzVPp3/hPWuoWbOk/EKhrxajUJiSqwOfudbYLtBY9mfcOTfGynUH5h0BgHq138MIRoZ/jincT6w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718545940; c=relaxed/simple; bh=bu9Mog7snMfQs6KDA84F/yaK+IjspoX6fA3XJ0YSwrc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gxzrqV+F6ojoLlDB7u3y4/TGvG5D3KJg0KdjyOp5ePLLjen+E7Y778HAPdfD0ItMaMgb7OKR5I5k3nXXEwq/BC9epBGCOqYk5O7gUiz3pRdz+SUuS/uWlzwFubnmqZyoDh1A3mYbcDr0MIaZgjDe9EwMO6SZ7sGh7H3hDp2A3cI= 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=ZLO0kew2; arc=none smtp.client-ip=209.85.218.46 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-ej1-f46.google.com with SMTP id a640c23a62f3a-a6267778b3aso341278666b.3 for ; Sun, 16 Jun 2024 06:52:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1718545936; x=1719150736; 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=aVJOf5/S/BQ++7Tmt06zBPeufq5XHjAatccdENKQCfA=; b=ZLO0kew2DOB7kLCNP9mWDxhk462kOEqRrwCbzvyeAlPFhfe27KVvMPZVhKZVkAh7Xl 0+fxlkdvoOFMaMqlJAnjYsFPdIFKIuIr2Iu3Ra6av4R6ovM6x9x0So90QqM2xhO550Dp dmWyg3fx4uPutUIOfd4sxEe7h4S48vNCcgDLTAXpLKyKg1IF2yVp1rRy3b2Gi6ZUUrm7 KSLluLAs8mcBp0wbE7BOX0/BRSmqlGoyOYJGUi1suZcUWO8nVbVVkipC+f68nu+92koL +yn3cs5/36u2anID0Wjgl0ZwJQx/ZuGCSaC/jal6nyZX0VHiuUk5RxoZFKqTYV0p1Vga RgGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718545936; x=1719150736; 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=aVJOf5/S/BQ++7Tmt06zBPeufq5XHjAatccdENKQCfA=; b=rLgAnGuU39jcC0YhVyQV5fEF1KRaH2wr+egWWebAyhERwJtPo+4N6KxSKz/rjY5+jg 64BKN8tUwNVfTwGppZHGf8jsJcfFUfghT4X5sule7FMDAB0OQ/MiBBNml3QcMQlsn4FI nUcP61HR7ilLfyrU4bmsFIPLSRubzBrXGJDaxpEWgMHftIh+FbngApMHv2y+mJyfDmgB tyWTz8wb7KYlpIN6NCLl+8iyw/2ATkBfe1qXwisI1YH7Wy5wAlN1di/KebxPtph4j03m GNddu7/ldjqHVmDDYkqDdqC6xZSkDUG1A0kUsO0qILwWc47R/Fdld+ksPWSNvcM+q6MT 6tQw== X-Forwarded-Encrypted: i=1; AJvYcCVj3A5oH2LojsDzvlYToDRstnyy2pwh52KI0g6j5pzZc1T+TE8ZN5fTvl8CE8lAPE8pj/I7rn1rOa9oMjUM0WvTL5IuW5OzhV6ftUkE X-Gm-Message-State: AOJu0YyyNaBabnR/CYGQzZFZ5INv26+kuMNd7P6AYymVOsTIodt5SAHt 7oE4a2TQFDUxZ6mSdQrzucbXuCHYT5bUsGDP4BfiAeSHbGdHVSzCDivlXtAnJds= X-Received: by 2002:a17:906:91b:b0:a69:2288:41da with SMTP id a640c23a62f3a-a6f60d1e08bmr477224266b.30.1718545936279; Sun, 16 Jun 2024 06:52:16 -0700 (PDT) Received: from localhost ([2a02:8071:b783:6940:36f3:9aff:fec2:7e46]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f56f41a7asm411104566b.159.2024.06.16.06.52.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jun 2024 06:52:15 -0700 (PDT) Date: Sun, 16 Jun 2024 15:52:13 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Lee Jones Cc: Fabrice Gasnier , William Breathitt Gray , Maxime Coquelin , Alexandre Torgue , linux-iio@vger.kernel.org, linux-pwm@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/4] mfd: stm32-timers: Drop TIM_DIER_CC_IE(x) in favour of TIM_DIER_CCxIE(x) Message-ID: References: <0735860960b1b38570bffa5b0de81a97f6e3230e.1718352022.git.u.kleine-koenig@baylibre.com> <20240614093124.GD3029315@google.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="khghdirpbdghwbcv" Content-Disposition: inline In-Reply-To: <20240614093124.GD3029315@google.com> --khghdirpbdghwbcv Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Lee, On Fri, Jun 14, 2024 at 10:31:24AM +0100, Lee Jones wrote: > On Fri, 14 Jun 2024, Uwe Kleine-K=F6nig wrote: >=20 > > These two defines have the same purpose and this change doesn't > > introduce any differences in drivers/counter/stm32-timer-cnt.o. > >=20 > > The only difference between the two is that > >=20 > > TIM_DIER_CC_IE(1) =3D=3D TIM_DIER_CC2IE > >=20 > > while > >=20 > > TIM_DIER_CCxIE(1) =3D=3D TIM_DIER_CC1IE > >=20 > > . That makes it necessary to have an explicit "+ 1" in the user code, > > but IMHO this is a good thing as this is the code locatation that > > "knows" that for software channel 1 you have to use TIM_DIER_CC2IE > > (because software guys start counting at 0, while the relevant hardware > > designer started at 1). > >=20 > > Signed-off-by: Uwe Kleine-K=F6nig > > --- > > drivers/counter/stm32-timer-cnt.c | 4 ++-- >=20 > The subject should be renamed. I guess you mean it should be something like: counter: stm32-timer-cnt: Drop TIM_DIER_CC_IE(x) in favour of TIM_DIER_CCx= IE(x + 1) ? Best regards Uwe --khghdirpbdghwbcv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmZu7gsACgkQj4D7WH0S /k4MUQf/VqW+at8uAggESZjyPhgYcHEaQ1kceLpTrHqaFJgZmlPa2zZvoQvWskUX DexhB9bLAR7QtFS7LOgcPBUkhM5pktmjD4H3FMQl7QxmoZqF6pQZQyLagrpmA77s yc4aqiukIH9LrPU0v7sam+PTe0QbVc6LTlzl0dxS2x0VsIW+PhfPrYLT6jV13rpx rz6fA/jEgAOA80N9iOaE59VEc6eICE68EZv8NrcAXpx8GHBDLQ643JKssZyfUC7E f1tcK9tUAUzK4BWhbyRgOdrBCOLOpkgMkrsF4FTKeL0c3jhbtA55jT5EeMXElZcF SZ8TODt9DDKZ2A77+7WBHfa1Uc7tBA== =Bi6N -----END PGP SIGNATURE----- --khghdirpbdghwbcv--