hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
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)