gpio: timbgpio: use a copy of the IER register to avoid it being trashed
authorTomas Hallenberg <tomas.hallenberg@pelagicore.com>
Wed, 27 Oct 2010 22:33:17 +0000 (15:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 28 Oct 2010 01:03:07 +0000 (18:03 -0700)
commit76d800a5b6e198c4fda07b88bb42a545709f193b
treee1d16296c54137cbaedfbde59502fa28143755fc
parent09cd9527d621640d4dd231dff77b681e711d8e4b
gpio: timbgpio: use a copy of the IER register to avoid it being trashed

Some versions of the hardware can trash the IER register if simultaneous
interrupts occur.  This patch works around it by using a local copy of the
register and restoring it after every interrupt.

Signed-off-by: Tomas Hallenberg <tomas.hallenberg@pelagicore.com>
Acked-by: Richard Röjfors <richard.rojfors@pelagicore.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpio/timbgpio.c