]> xenbits.xensource.com Git - qemu-upstream-4.6-testing.git/commitdiff
hw/exynos4210_pwm.c: Fix STOP status in tick handler.
authorEvgeny Voevodin <e.voevodin@samsung.com>
Wed, 4 Jul 2012 10:43:31 +0000 (10:43 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 4 Jul 2012 10:43:31 +0000 (10:43 +0000)
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

index 6243e59c48f57dc4a95740f5cbbb7c0413c86804..0c228280a91dd9d237671db2cadcda7d69ae5c6e 100644 (file)
@@ -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);
     }
 }