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