[ARM] 4493/1: ns9xxx: disable a non-reloading timer before ack'ing its irq

The HRM states that is must be done this way ...

Signed-off-by: Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by Uwe Kleine-König and committed by Russell King 26c671c6 3945a567

+9
+9
arch/arm/mach-ns9xxx/irq.c
··· 21 { 22 u32 tc = SYS_TC(irq - IRQ_TIMER0); 23 24 REGSET(tc, SYS_TCx, INTC, SET); 25 SYS_TC(irq - IRQ_TIMER0) = tc; 26
··· 21 { 22 u32 tc = SYS_TC(irq - IRQ_TIMER0); 23 24 + /* 25 + * If the timer is programmed to halt on terminal count, the 26 + * timer must be disabled before clearing the interrupt. 27 + */ 28 + if (REGGET(tc, SYS_TCx, REN) == 0) { 29 + REGSET(tc, SYS_TCx, TEN, DIS); 30 + SYS_TC(irq - IRQ_TIMER0) = tc; 31 + } 32 + 33 REGSET(tc, SYS_TCx, INTC, SET); 34 SYS_TC(irq - IRQ_TIMER0) = tc; 35