diff options
| author | Fabrice Gasnier <[email protected]> | 2019-11-21 10:58:00 +0000 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2020-01-20 12:47:36 +0000 |
| commit | 0c73201c5c094256236b129799ab6761b491d8cd (patch) | |
| tree | 9ed22b0d81ceaa5097a3b4bedfc5619594e36a3c /drivers/pwm/pwm-stm32.c | |
| parent | pwm: sun4i: Narrow scope of local variable (diff) | |
| download | kernel-0c73201c5c094256236b129799ab6761b491d8cd.tar.gz kernel-0c73201c5c094256236b129799ab6761b491d8cd.zip | |
pwm: stm32: Remove automatic output enable
Don't use AOE (automatic output enable) by default. In case of break
events, PWM is automatically re-enabled on next PWM cycle otherwise.
Signed-off-by: Fabrice Gasnier <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-stm32.c')
| -rw-r--r-- | drivers/pwm/pwm-stm32.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pwm/pwm-stm32.c b/drivers/pwm/pwm-stm32.c index 7ff48c14fae8..d3be944f2ae9 100644 --- a/drivers/pwm/pwm-stm32.c +++ b/drivers/pwm/pwm-stm32.c @@ -377,9 +377,7 @@ static int stm32_pwm_config(struct stm32_pwm *priv, int ch, else regmap_update_bits(priv->regmap, TIM_CCMR2, mask, ccmr); - regmap_update_bits(priv->regmap, TIM_BDTR, - TIM_BDTR_MOE | TIM_BDTR_AOE, - TIM_BDTR_MOE | TIM_BDTR_AOE); + regmap_update_bits(priv->regmap, TIM_BDTR, TIM_BDTR_MOE, TIM_BDTR_MOE); return 0; } |
