]> git.kernelconcepts.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)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 1 Apr 2013 13:02:18 +0000 (14:02 +0100)
commit375981f2e14868be16cafbffd34a4f16a6ee01c6
tree966ce16e7653ff4add091acb6c721620d808ffa5
parentb435ff212e91bddc2d12e6638a4d846d5f60daa6
spi/s3c64xx: modified error interrupt handling and init

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>
Cc: stable@vger.kernel.org
drivers/spi/spi-s3c64xx.c