aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-meson.c
diff options
context:
space:
mode:
authorBichao Zheng <[email protected]>2019-04-01 18:18:17 +0000
committerThierry Reding <[email protected]>2019-05-09 14:50:35 +0000
commita279345807e1e0ae79567a52cfdd9d30c9174a3c (patch)
tree9a3a3eddd9ff55ff888aacdf2093f6d2950a8d75 /drivers/pwm/pwm-meson.c
parentpwm: meson: Consider 128 a valid pre-divider (diff)
downloadkernel-a279345807e1e0ae79567a52cfdd9d30c9174a3c.tar.gz
kernel-a279345807e1e0ae79567a52cfdd9d30c9174a3c.zip
pwm: meson: Don't disable PWM when setting duty repeatedly
There is an abnormally low about 20ms,when setting duty repeatedly. Because setting the duty will disable PWM and then enable. Delete this operation now. Fixes: 211ed630753d2f ("pwm: Add support for Meson PWM Controller") Signed-off-by: Bichao Zheng <[email protected]> [ Dropped code instead of hiding it behind a comment ] Signed-off-by: Martin Blumenstingl <[email protected]> Reviewed-by: Neil Armstrong <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-meson.c')
-rw-r--r--drivers/pwm/pwm-meson.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/pwm/pwm-meson.c b/drivers/pwm/pwm-meson.c
index aaae48ab484e..2ab3d216b35a 100644
--- a/drivers/pwm/pwm-meson.c
+++ b/drivers/pwm/pwm-meson.c
@@ -314,11 +314,6 @@ static int meson_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
if (state->period != channel->state.period ||
state->duty_cycle != channel->state.duty_cycle ||
state->polarity != channel->state.polarity) {
- if (channel->state.enabled) {
- meson_pwm_disable(meson, pwm->hwpwm);
- channel->state.enabled = false;
- }
-
if (state->polarity != channel->state.polarity) {
if (state->polarity == PWM_POLARITY_NORMAL)
meson->inverter_mask |= BIT(pwm->hwpwm);