diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2020-02-09 22:31:06 +0100 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2020-03-30 16:55:25 +0200 |
commit | 15d4dbd601591858611184f9ddeb5bf21569159c (patch) | |
tree | f90ec7570c283eb4f19aa5e94541c237876dd38a /include | |
parent | 2c25b07e5ec119cab609e41407a1fb3fa61442f5 (diff) |
pwm: imx27: Fix clock handling in pwm_imx27_apply()
pwm_imx27_apply() enables the clocks if the previous PWM state was
disabled. Given that the clocks are supposed to be left on iff the PWM
is running, the decision to disable the clocks at the end of the
function must not depend on the previous state.
Without this fix the enable count of the two affected clocks increases
by one whenever ->apply() changes from one disabled state to another.
Fixes: bd88d319abe9 ("pwm: imx27: Unconditionally write state to hardware")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions