OMAP2/3: DMTIMER: Clear pending interrupts when stopping a timer
authorTero Kristo <tero.kristo@nokia.com>
Fri, 23 Oct 2009 16:03:47 +0000 (19:03 +0300)
committerTony Lindgren <tony@atomide.com>
Fri, 22 Jan 2010 02:30:10 +0000 (18:30 -0800)
commit5c3db36bf68bb9f682a0188d81dc184f5e62a6e4
treeb18b45715c6ebfd4f5e3022be441bc386b6d479d
parentb2d959173fea3e04229b2ff33473b5a031669f66
OMAP2/3: DMTIMER: Clear pending interrupts when stopping a timer

OMAP GP timers keep running for a few cycles after they are stopped,
which can cause the timer to expire and generate an interrupt. The
pending interrupt will prevent e.g. OMAP from entering suspend, thus
we ack it manually.  Only applicable on OMAP2/3/4.

Signed-off-by: Tero Kristo <tero.kristo@nokia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/dmtimer.c