hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
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)