Re: [PATCH v4 3/4] pwm: meson: use bulk API for per-channel clocks
From: Uwe Kleine-König
Date: Mon Nov 30 2026 - 03:53:58 EST
Hello,
On Thu, Aug 27, 2026 at 08:40:12AM +0000, Xianwei Zhao via B4 Relay wrote:
> From: Xianwei Zhao <xianwei.zhao@xxxxxxxxxxx>
>
> The S4 PWM driver currently gets each channel clock individually with
> of_clk_get() and uses a custom cleanup action to release the clocks.
>
> Use devm_clk_bulk_get_all() instead to retrieve all per-channel clocks
> at once. Verify that the number of clocks matches the number of PWM
> channels and assign each clock to its corresponding channel.
>
> This also allows the per-channel clock initialization code to be shared
> by Meson PWM variants using one clock per channel.
>
> Signed-off-by: Xianwei Zhao <xianwei.zhao@xxxxxxxxxxx>
I applied this patch (after some trivial conflict resulution due to not
having the 2nd patch yet) with the indention fix that Alex pointed out
and his Review-by: tag to
https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git pwm/for-next
When you respin the series, please make sure your base contains that
commit already.
Best regards
Uwe
Attachment:
signature.asc
Description: PGP signature