ARM: OMAP: Fix spurious interrupts when using timer match feature
authorJon Hunter <jon-hunter@ti.com>
Thu, 4 Oct 2012 23:17:42 +0000 (18:17 -0500)
committerGrazvydas Ignotas <notasas@gmail.com>
Sat, 2 Mar 2013 20:12:01 +0000 (22:12 +0200)
commitc28df706f4b1f6bbb9cb7b815d8957f81c72b518
tree82c3ca8a32e541e78f11e61824a77e62e5f3db06
parente3b32ba8b44f6242af975cb34267e5666d96dd34
ARM: OMAP: Fix spurious interrupts when using timer match feature

The OMAP DMTIMERs can generate an interrupt when the timer counter value
matches the value stored in the timer's match register. When using this
feature spurious interrupts were seen, because the compare logic is being
enabled before the match value is loaded and according to the documentation
the match value must be loaded before the compare logic is enable.

The reset value for the timer counter and match registers is 0 and hence,
by enabling the compare logic before the actual match value is loaded a
spurious interrupt can be generated as the reset values match.

Signed-off-by: Jon Hunter <jon-hunter@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
arch/arm/plat-omap/dmtimer.c