mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 03:50:24 +09:00
pwm: meson: Don't disable PWM when setting duty repeatedly
[ Upstream commita279345807] 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. Fixes:211ed63075("pwm: Add support for Meson PWM Controller") Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com> [ Dropped code instead of hiding it behind a comment ] Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Reviewed-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
82366de36f
commit
e5195f7863
@@ -320,11 +320,6 @@ static int meson_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
|
||||
if (state->period != channel->state.period ||
|
||||
state->duty_cycle != channel->state.duty_cycle ||
|
||||
state->polarity != channel->state.polarity) {
|
||||
if (channel->state.enabled) {
|
||||
meson_pwm_disable(meson, pwm->hwpwm);
|
||||
channel->state.enabled = false;
|
||||
}
|
||||
|
||||
if (state->polarity != channel->state.polarity) {
|
||||
if (state->polarity == PWM_POLARITY_NORMAL)
|
||||
meson->inverter_mask |= BIT(pwm->hwpwm);
|
||||
|
||||
Reference in New Issue
Block a user