mbox series

[0/2] pwm: pxa: Fixes for enable/disable transitions

Message ID 20221002061552.45479-1-doug@schmorgal.com
Headers show
Series pwm: pxa: Fixes for enable/disable transitions | expand

Message

Doug Brown Oct. 2, 2022, 6:15 a.m. UTC
I ran into a couple of problems while getting this driver working on the
PXA168. It wouldn't always activate properly when I turned it on, and it
wouldn't always deactivate properly when I turned it off. These patches
fix issues with the clock enable/disable transitions.

With these patches applied, the driver works flawlessly with my use
cases on the PXA168. I don't have any other PXAxxx devices to test with.

Doug Brown (2):
  pwm: pxa: Enable clock before applying config
  pwm: pxa: Set duty cycle to 0 before disabling

 drivers/pwm/pwm-pxa.c | 29 ++++++++++++++++-------------
 1 file changed, 16 insertions(+), 13 deletions(-)