hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/pwm/pwm-sprd.c
....@@ -109,6 +109,7 @@
109109 duty = val & SPRD_PWM_DUTY_MSK;
110110 tmp = (prescale + 1) * NSEC_PER_SEC * duty;
111111 state->duty_cycle = DIV_ROUND_CLOSEST_ULL(tmp, chn->clk_rate);
112
+ state->polarity = PWM_POLARITY_NORMAL;
112113
113114 /* Disable PWM clocks if the PWM channel is not in enable state. */
114115 if (!state->enabled)