diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-02-25 02:55:58 +0100 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2018-03-28 01:07:57 +0200 |
commit | 989ae7a5b2f965dc5e6de132f1d8c0ea8c23c3c5 (patch) | |
tree | 6021a938ed865b1f2008a78d0cd7c6347bb94b92 /drivers/mcb | |
parent | 120cc2fff40096fb99d96d8671ad7469dd44862f (diff) | |
download | linux-989ae7a5b2f965dc5e6de132f1d8c0ea8c23c3c5.tar.bz2 |
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: 93e0dfb2c52f ("pwm: sun4i: Improve hardware read out")
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/mcb')
0 files changed, 0 insertions, 0 deletions