Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pwm: sun4i: Properly check current state
Correctly extract the prescaler value from CTRL_REG before comparing it to PWM_PRESCAL_MASK. Also, check that both PWM_CLK_GATING and PWM_EN to ensure the PWM is enabled instead of relying on only one of those. Fixes: 93e0dfb ("pwm: sun4i: Improve hardware read out") Signed-off-by: Alexandre Belloni <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
- Loading branch information