From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796040405; b=hKBfvtK5KFrpxWmIODdNoLQcHh4/ZY0eRaIVs0CJPVGll447iDIET4QfnGsO5YgWNXS2 5y2LIrasoY0YHP0dP/qgowpKwsuKP4c492LSxRma+z/lG1M3ZYR1Udol4GxsS02Zmz8nc rtIFTx9MtcUxZ6xB817rzUaA9Awf4nInehGoQMlCryFPxIYV50nKDq1SOFYWjGSebU9j5 Xy85s6UH2ly9QlUpbLfw30Cyv3Tt787RHEfTSWD5lDtzkb+3ZjCQ08kxmElmcIE8SMuCN 9xw942Kau30qWCqYdWZcK2iSTVJpj4v+9+01JWw/vuHtBibM6/ln9F8XfIkLEphlaQQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796040405; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=FG9GNl0B5ky64lll17ayUZToO9ngc2aXovRba39u/9Q=; b=DoA7cNcJcaic1b3TZqZYDUah2vLCCSdiuVb30B0GBw2MH4b85rf91M/dsN04v5vtJPsL SQbHPEpZ3w9w99tZsZLyYhfSvSSEp8p1FY5f9E2GNEXTiIjMygm6lKuEjEl0oMNxpYs8X JgH6nksHYGu5gfcYnapnzPVFAX62KxjiK600LpAY6RoDtNepFuHyFHQc2xOurJu0+TX6y SsUGhPENszYdaEQ9a1omiX/zfvFeDFnGhsDgJ2LAmILisWrb6pIZP3S2g6o0Ut7jsRuQK S2j4b832u1T615D33wk9H4z9aEgG4O3DujWm9tLjFnPf1jIc5WEhplXnQ12FvvCLARw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=g4fAT6X4; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5C4E5606A320 for ; Mon, 30 Nov 2026 12:06:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=g4fAT6X4 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A49991F00896; Mon, 30 Nov 2026 12:06:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796040404; bh=FG9GNl0B5ky64lll17ayUZToO9ngc2aXovRba39u/9Q=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=g4fAT6X452a3I0hWSo+F/3zWBLJ8xQbJvxOONCAKmJx/iwHKbfO8xJBnGMIp3avFY KlvA1pCw1VF3944XEpZLA91ce5wx1zx4OFTqWb01pog+a5ek8JkWK8aFnK0Uw8GoxA t2r2EyHF14vC+3yTgn9OExuK6QbYWaOcLknEvrdAicbZenKoDyZ6cKEuzEXCPiPguh Jl5V9SjQAwYPWiGD7obeLvHV3DarRxLLHvJpvE5ix3hExujNiQWQso3XO2p7E0majs UMoFT9wVe8glJe5m/74OZOEzwflX6/RyCf82l7FIKC0qeEVQKEjz79OXe96q5vCWeE aJhAXqVM0g3lg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v5 2/3] pwm: meson: add the PWM count driver data Reply-To: sashiko-reviews@lists.linux.dev To: "Xianwei Zhao" Cc: devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org, robh@kernel.org, conor+dt@kernel.org, neil.armstrong@linaro.org In-Reply-To: <20261130-s6-s7-pwm-v5-2-396935d2987d@amlogic.com> References: <20261130-s6-s7-pwm-v5-0-396935d2987d@amlogic.com> <20261130-s6-s7-pwm-v5-2-396935d2987d@amlogic.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 12:06:44 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [Low] pwm: meson: unreplaced XYZ placeholder and incomplete commit message - [Low] pwm: meson: unaddressed v4 feedback on MESON_NUM_PWMS and XYZ placeholder -- commit dc63cdb88cc6bfabf5cc70eb8f664cded9a113d3 Author: Xianwei Zhao > pwm: meson: add the PWM count driver data > > To prepare adding support for XYZ which doesn't have 2 but 1 > PWM outputs, make the various loops iterater using chip->npwm > instead of the constant MESON_NUM_PWMS. > > Reviewed-by: Alexandre Mergnat > Signed-off-by: Xianwei Zhao [Severity: Low] The commit message still contains the literal placeholder "XYZ" instead of naming the target Amlogic SoCs (S6, S7 and S7D) and has a typo in "iterater". It also omits that this patch adds npwm to struct meson_pwm_data, sets .npwm =3D 2 for existing variants, and passes pdata->npwm to devm_pwmchip_alloc() in meson_pwm_probe(). > diff --git a/drivers/pwm/pwm-meson.c b/drivers/pwm/pwm-meson.c > index 3a28c853089f8..422aa8bb20b44 100644 > --- a/drivers/pwm/pwm-meson.c > +++ b/drivers/pwm/pwm-meson.c > @@ -108,6 +108,7 @@ struct meson_pwm_data { > int (*channels_init)(struct pwm_chip *chip); > bool has_constant; > bool has_polarity; > + u8 npwm; > }; > =20 > struct meson_pwm { > @@ -440,7 +441,7 @@ static int meson_pwm_init_clocks_meson8b(struct pwm_c= hip *chip, > char name[255]; > int err; > =20 > - for (i =3D 0; i < MESON_NUM_PWMS; i++) { > + for (i =3D 0; i < chip->npwm; i++) { [ ... ] > @@ -699,9 +710,10 @@ static int meson_pwm_probe(struct platform_device *p= dev) > { > struct pwm_chip *chip; > struct meson_pwm *meson; > + const struct meson_pwm_data *pdata =3D of_device_get_match_data(&pdev->= dev); > int err; > =20 > - chip =3D devm_pwmchip_alloc(&pdev->dev, MESON_NUM_PWMS, sizeof(*meson)); > + chip =3D devm_pwmchip_alloc(&pdev->dev, pdata->npwm, sizeof(*meson)); [Severity: Low] As reported by Uwe Kleine-K=C3=B6nig on v4 [1], can MESON_NUM_PWMS be dropp= ed in this commit now that the channel count comes from pdata->npwm? drivers/pwm/pwm-meson.c still defines MESON_NUM_PWMS to size meson_pwm_per_channel_data[] and meson->channels[]. [1] https://lore.kernel.org/r/aw01OAIy4gGjXvDI@monoceros --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261130-s6-s7-pwm-= v5-0-396935d2987d@amlogic.com?part=3D2