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

Uwe Kleine-König ukleinek at kernel.org
Mon Nov 30 00:39:00 PST 2026


Hello,

On Thu, Aug 27, 2026 at 08:40:11AM +0000, Xianwei Zhao via B4 Relay wrote:
> From: Xianwei Zhao <xianwei.zhao at amlogic.com>
> 
> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20261130/f5637e0c/attachment.sig>


More information about the linux-arm-kernel mailing list