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:38:43 +0000 (09:38 -0700)
commitc8c76a4e4615ae959543cc8332339384ccb4f192
tree816ca06da019531112a3be9afc7866bdb43658d6
parent6ec0e8e15ecc310464185db7820c5d30be409d1e
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