[PATCH 0/2] pwm: loongson: Fix PWM configuration handling
From: Keguang Zhang via B4 Relay
Date: Tue Jun 16 2026 - 07:17:29 EST
This series fixes two issues in the Loongson PWM driver:
- Fix the handling of the Low Pulse Buffer Register, which was
incorrectly treated as a duty-cycle register.
- Ensure that PWM configuration updates take effect immediately by
resetting the PWM counter to reload the updated settings.
The fixes were verified on LS1B, LS1C, and LS2K0300 boards.
Signed-off-by: Keguang Zhang <keguang.zhang@xxxxxxxxx>
---
Keguang Zhang (2):
pwm: loongson: Fix low pulse buffer register handling
pwm: loongson: Reload PWM configuration through counter reset
drivers/pwm/pwm-loongson.c | 31 ++++++++++++++++---------------
1 file changed, 16 insertions(+), 15 deletions(-)
---
base-commit: 8d6dbbbe3ba62de0a63e962ee004afb848c8e3ac
change-id: 20260612-pwm-loongson-fix-183763451e93
Best regards,
--
Keguang Zhang <keguang.zhang@xxxxxxxxx>