Re: [PATCH v4 2/4] pwm: meson: add the PWM count driver data
From: Xianwei Zhao
Date: Mon Nov 30 2026 - 05:06:50 EST
Hi Uwe,
Thanks for your review.
On 2026/11/30 16:39, Uwe Kleine-König wrote:
Hello,
On Thu, Aug 27, 2026 at 08:40:11AM +0000, Xianwei Zhao via B4 Relay wrote:
From: Xianwei Zhao<xianwei.zhao@xxxxxxxxxxx>I'd write:
Add .npwm fill the existing entries, use it in probe, and switch the loop
in meson_pwm_init_clocks_meson8b() and meson_pwm_init_channels_s4() to
chip->npwm. No functional change.
To prepare adding support for XYZ which doesn't have 2 but 17
PWM outputs, make the various loops iterater using chip->npwm
instead of the constant MESON_NUM_PWMS.
I would expect that MESON_NUM_PWMS can be dropped in this commit?
I will follow your log when writing the commit message.
Otherwise looks fine.