Patchwork [02/10] hw/exynos4210_pwm.c: Fix STOP status in tick handler.

login
register
mail settings
Submitter Peter Maydell
Date July 4, 2012, 11:14 a.m.
Message ID <1341400454-20145-3-git-send-email-peter.maydell@linaro.org>
Download mbox | patch
Permalink /patch/168953/
State New
Headers show

Comments

Peter Maydell - July 4, 2012, 11:14 a.m.
From: Evgeny Voevodin <e.voevodin@samsung.com>

START/STOP bit was not cleaned correctly.

Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 hw/exynos4210_pwm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/hw/exynos4210_pwm.c b/hw/exynos4210_pwm.c
index 6243e59..0c22828 100644
--- a/hw/exynos4210_pwm.c
+++ b/hw/exynos4210_pwm.c
@@ -200,7 +200,7 @@  static void exynos4210_pwm_tick(void *opaque)
         ptimer_run(p->timer[id].ptimer, 1);
     } else {
         /* stop timer, set status to STOP, see Basic Timer Operation */
-        p->reg_tcon = ~TCON_TIMER_START(id);
+        p->reg_tcon &= ~TCON_TIMER_START(id);
         ptimer_stop(p->timer[id].ptimer);
     }
 }