mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 20:32:04 +09:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user