kernel/drivers/pwm/pwm-sprd.c
.. .. @@ -109,6 +109,7 @@ 109 109 duty = val & SPRD_PWM_DUTY_MSK; 110 110 tmp = (prescale + 1) * NSEC_PER_SEC * duty; 111 111 state->duty_cycle = DIV_ROUND_CLOSEST_ULL(tmp, chn->clk_rate); 112 + state->polarity = PWM_POLARITY_NORMAL;112 113 113 114 /* Disable PWM clocks if the PWM channel is not in enable state. */ 114 115 if (!state->enabled)