Re: [PATCH v2 2/2] pwm: loongson: Reload PWM configuration through counter reset

From: Uwe Kleine-König

Date: Mon Jul 06 2026 - 04:44:25 EST


On Fri, Jun 26, 2026 at 08:24:23PM +0800, Keguang Zhang via B4 Relay wrote:
> From: Keguang Zhang <keguang.zhang@xxxxxxxxx>
>
> The Loongson PWM controller latches the LOW and PERIOD registers only at
> the start of each PWM period. After disabling and re-enabling the PWM,
> the controller resumes from the previous counter value and completes the
> current period before re-latching the updated LOW and PERIOD values.
>
> Reset the PWM counter when disabling the PWM and release it when
> enabling the PWM so that the updated LOW and PERIOD values are latched
> before the PWM starts running again.
>
> Signed-off-by: Keguang Zhang <keguang.zhang@xxxxxxxxx>

This also needs a Fixes: line, referencing 2b62c89448dd ("pwm: Add
Loongson PWM controller support"), too, right?

Best regards
Uwe

Attachment: signature.asc
Description: PGP signature