From 11573cdb34ec790c3dd6f860442be4f7b4d651d5 Mon Sep 17 00:00:00 2001 From: "bichao.zheng" Date: Fri, 6 Jul 2018 16:56:33 +0800 Subject: [PATCH] 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 --- drivers/amlogic/pwm/pwm_meson.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/amlogic/pwm/pwm_meson.c b/drivers/amlogic/pwm/pwm_meson.c index 3d4f99a2cca7..b2a51ffd35e4 100644 --- a/drivers/amlogic/pwm/pwm_meson.c +++ b/drivers/amlogic/pwm/pwm_meson.c @@ -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; }