pwm: meson: don't disable pwm when setting duty repeatedly
authorbichao.zheng <bichao.zheng@amlogic.com>
Fri, 6 Jul 2018 08:56:33 +0000 (16:56 +0800)
committerBo Yang <bo.yang@amlogic.com>
Mon, 16 Jul 2018 08:11:54 +0000 (01:11 -0700)
PD#169687: 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.

Change-Id: I4bca5e61b4782da3160c14d8c73cd913d7e21db3
Signed-off-by: bichao.zheng <bichao.zheng@amlogic.com>
drivers/amlogic/pwm/pwm_meson.c

index 3d4f99a2cca7d3250ce18784bb0604c14a2aada6..b2a51ffd35e435ed5d304c1babe07a9445832ff8 100644 (file)
@@ -355,7 +355,10 @@ static int meson_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
            state->duty_cycle != channel->state.duty_cycle ||
            state->polarity != channel->state.polarity) {
                if (channel->state.enabled) {
-                       meson_pwm_disable(meson, pwm->hwpwm);
+                       /*
+                        *Don't disable pwm when setting duty repeatedly
+                        *meson_pwm_disable(meson, pwm->hwpwm);
+                        */
                        channel->state.enabled = false;
                }