]> git.baikalelectronics.ru Git - kernel.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)
commite2749bee383e26aa7062b0d720579f2117fded15
tree966ce16e7653ff4add091acb6c721620d808ffa5
parent1878527e2aa6700a6458a23f235a11f21528a118
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