Re: [patch v2 07/10] drivers/pwm/rk_pwm.c: Fix default polarity

2020-10-27 Thread Alper Nebi Yasak
On 27/10/2020 16:21, Arnaud Patard (Rtp) wrote: > In the code, the default polarity is set to positive/positive, > which is neither normal polarity or inverted polarity. It's > only the hardware default. This leads to booting linux with > wrong polarity setting. > > Update the code to use

[patch v2 07/10] drivers/pwm/rk_pwm.c: Fix default polarity

2020-10-27 Thread Rtp
In the code, the default polarity is set to positive/positive, which is neither normal polarity or inverted polarity. It's only the hardware default. This leads to booting linux with wrong polarity setting. Update the code to use PWM_DUTY_POSTIVE | PWM_INACTIVE_NEGATIVE by default instead.