Skip to content

Commit

Permalink
arm: zynq: timer: Remove unnecessary register write
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Soren Brinkmann authored and Michal Simek committed Jan 28, 2013
1 parent f184c5c commit af7f032
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/arm/mach-zynq/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit af7f032

Please sign in to comment.