]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm: zynq: timer: Remove unnecessary register write
authorSoren Brinkmann <soren.brinkmann@xilinx.com>
Wed, 19 Dec 2012 18:18:37 +0000 (10:18 -0800)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 28 Jan 2013 12:27:21 +0000 (13:27 +0100)
Acknowedging an interrupt requires to read the interrupt register
only. The write was only required to work around a bug in
the QEMU implementation of the TTC, which is fixed.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Tested-by: Josh Cartwright <josh.cartwright@ni.com>
arch/arm/mach-zynq/timer.c

index 570491d3796609ad61cc9b5512509fd8d3d9edc9..f1d224bf162d033588e55105a445bd7ad93477b8 100644 (file)
@@ -121,8 +121,7 @@ static irqreturn_t xttcps_clock_event_interrupt(int irq, void *dev_id)
        struct xttcps_timer *timer = &xttce->xttc;
 
        /* Acknowledge the interrupt and call event handler */
-       __raw_writel(__raw_readl(timer->base_addr + XTTCPS_ISR_OFFSET),
-                       timer->base_addr + XTTCPS_ISR_OFFSET);
+       __raw_readl(timer->base_addr + XTTCPS_ISR_OFFSET);
 
        xttce->ce.event_handler(&xttce->ce);