]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: davinci: da8xx: fix interrupt handling
authorSekhar Nori <nsekhar@ti.com>
Wed, 20 Jun 2012 17:40:13 +0000 (23:10 +0530)
committerSekhar Nori <nsekhar@ti.com>
Mon, 9 Jul 2012 10:31:11 +0000 (16:01 +0530)
commitbbb33445b9cdd5ac7609723fcfc28dfa77a11039
tree0e5a43af51fafdc94482fd502f9107357064c73e
parent485802a6c524e62b5924849dd727ddbb1497cc71
ARM: davinci: da8xx: fix interrupt handling

CP_INTC code in entry-macro.S code reads SECR1n register to see if
an interrupt was indeed pending. This register is actually marked as
write-only in the OMAP-L138 TRM. Moreover, the code just checks to see
the entire register is non-zero and does not check a specific interrupt
number.

Fix this to use interrupt pending bit in GIPR register for this purpose.
GIPR register is already being read to know the highest priority interrupt
pending.

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/mach-davinci/include/mach/entry-macro.S