Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af7f032d authored by Soren Brinkmann's avatar Soren Brinkmann Committed by Michal Simek
Browse files

arm: zynq: timer: Remove unnecessary register write



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: default avatarSoren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: default avatarPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Tested-by: default avatarJosh Cartwright <josh.cartwright@ni.com>
parent f184c5ca
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);