]> git.karo-electronics.de Git - karo-tx-linux.git/commit
spi/s3c64xx: modified error interrupt handling and init
authorGirish K S <girishks2000@gmail.com>
Wed, 13 Mar 2013 06:43:30 +0000 (12:13 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Apr 2013 16:52:03 +0000 (09:52 -0700)
commit0f9da4da0299fbfb23c6439a348914688ac9c9da
tree8d550d73ab8fdf75c754c1b32d714d0947aa3a1c
parent0e55072e7c63a6569cab1447e9025d160abd9dd9
spi/s3c64xx: modified error interrupt handling and init

commit 375981f2e14868be16cafbffd34a4f16a6ee01c6 upstream.

The status of the interrupt is available in the status register,
so reading the clear pending register and writing back the same
value will not actually clear the pending interrupts. This patch
modifies the interrupt handler to read the status register and
clear the corresponding pending bit in the clear pending register.

Modified the hwInit function to clear all the pending interrupts.

Signed-off-by: Girish K S <ks.giri@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spi/spi-s3c64xx.c