[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/3] hw/exynos4210_pwm.c: Fix STOP status in tick ha
From: |
Evgeny Voevodin |
Subject: |
[Qemu-devel] [PATCH 2/3] hw/exynos4210_pwm.c: Fix STOP status in tick handler. |
Date: |
Wed, 27 Jun 2012 07:55:10 +0400 |
START/STOP bit was not cleaned correctly.
Signed-off-by: Evgeny Voevodin <address@hidden>
---
hw/exynos4210_pwm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
}
}
--
1.7.9.5