]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9c84cb7a56eccc6980a0e6658ebad34b80920207
treee1d16296c54137cbaedfbde59502fa28143755fc
parent9b067ad7ac06aeae4134ee60e7e4d5a3ce7b4f38
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