pwm: meson: don't disable pwm when setting duty repeatedly

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>
This commit is contained in:
bichao.zheng
2018-07-06 16:56:33 +08:00
committed by Bo Yang
parent 1d6a58a251
commit 11573cdb34

View 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;
}