[PATCH] pwm: mxs: Disable clock on invalid period error path
Uwe Kleine-König
ukleinek at kernel.org
Mon Nov 16 01:29:05 PST 2026
[Cc: += Lee]
Hello,
On Mon, Nov 16, 2026 at 11:10:43AM +0800, Xiangwu Lai wrote:
> I've noticed that Lee Jones' series "pwm: Fix various bugs
> reported by Sashiko" also fixes the clock leak addressed by my
> patch below, with a broader scope:
>
> [PATCH 2/8] pwm: mxs: Return early when disabling and fix error-path clock leak
> https://lore.kernel.org/all/20261105143847.2559586-3-lee@kernel.org/
>
> Besides balancing clk_prepare_enable() on the same -EINVAL error
> path, that patch also handles the !state->enabled case upfront,
> avoiding a division by zero when state->period is zero, and it
> already carries a Reviewed-by from Frank Li.
>
> My patch for reference:
>
> pwm: mxs: Disable clock on invalid period error path
> https://lore.kernel.org/all/20261102105005.1007-1-laixiangwu@cmss.chinamobile.com/
>
> Please feel free to drop my patch in favour of Lee's more complete
> fix; there is no need to keep both.
Thanks for this follow-up, very appreciated. I marked your patch as
Superseded in patchwork in favour of Lee's patch.
Best regards
Uwe
-------------- 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/20261116/a1a83fab/attachment.sig>
More information about the linux-arm-kernel
mailing list