Re: [PATCH v2 2/2] pwm: loongson: Reload PWM configuration through counter reset
Uwe Kleine-König <[email protected]>
| Newsgroups | org.kernel.vger.linux-pwm,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <aktgrGb4CAO3_qFU@monoceros> |
On Fri, Jun 26, 2026 at 08:24:23PM +0800, Keguang Zhang via B4 Relay wrote: > From: Keguang Zhang <[email protected]> > > 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 <[email protected]> This also needs a Fixes: line, referencing 2b62c89448dd ("pwm: Add Loongson PWM controller support"), too, right? Best regards Uwe
signature.asc
(application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmpLYTIACgkQj4D7WH0S /k7RUwf9HbfEvpZHJvIcHytJJPia8pv9vN5kx+QzLjSthWmsV2lvMW9+7NlzLMHz ur9HssFYrXRpuV+4Cyz8288ZqIyyUNiJWTIkplDXgDpN33/mpjou2vz69dZZskaS 8HVZi5pSgjBHHYcWt3IFXtDlkA7VsvFarF0oPPq1DflGrnR2dIbedk10E3EudtTv 5bPSRYyHJQ9wrcriFdDQXT1DUdWrUBrEAQZaXhXyjWBFb6gVJDwrxxwMJFZZH0zr l+vDDJuyMh6e6zfaDXrj1PegQ6dZe3COin7B29nAbIchKUZHKv3vfw+hlJy8HrKh rhlheCF7n7hFiVRywMEuOoQW/1zxUw== =eqYU -----END PGP SIGNATURE-----