ARM: OMAP: Don't restore DMTIMER interrupt status register
authorJon Hunter <jon-hunter@ti.com>
Thu, 4 Oct 2012 22:01:14 +0000 (17:01 -0500)
committerGrazvydas Ignotas <notasas@gmail.com>
Sat, 2 Mar 2013 20:12:00 +0000 (22:12 +0200)
commite3b32ba8b44f6242af975cb34267e5666d96dd34
tree0fdee36ed3372048b5471440ffc214eee1d046bc
parentfa3cd93e38d630219df7dfca470cd6b5a98dda73
ARM: OMAP: Don't restore DMTIMER interrupt status register

Restoring the timer interrupt status is not possible because writing a 1 to any
bit in the register clears that bit if set and writing a 0 has no affect.
Furthermore, if an interrupt is pending when someone attempts to disable a
timer, the timer will fail to transition to the idle state and hence it's
context will not be lost. Users should take care to service all interrupts
before disabling the timer.

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