Re: [PATCH v4 2/4] pwm: meson: add the PWM count driver data

From: Uwe Kleine-König

Date: Mon Nov 30 2026 - 03:39:07 EST


Hello,

On Thu, Aug 27, 2026 at 08:40:11AM +0000, Xianwei Zhao via B4 Relay wrote:
> From: Xianwei Zhao <xianwei.zhao@xxxxxxxxxxx>
>
> 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.

I'd write:

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?

Otherwise looks fine.

Attachment: signature.asc
Description: PGP signature