aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/omap24xx/patches-3.1/253-cbus-tahvo-irq-reg-lock.patch
diff options
context:
space:
mode:
authorMichael Büsch <mb@bu3sch.de>2011-11-17 18:06:19 +0000
committerMichael Büsch <mb@bu3sch.de>2011-11-17 18:06:19 +0000
commit53f6feb5572a0a29918358a22f86bb9649fcd5b8 (patch)
tree5ab465886293058d37fa7da0e88209f6c2b518dd /target/linux/omap24xx/patches-3.1/253-cbus-tahvo-irq-reg-lock.patch
parent48937bced28d6027d76387ce553b0df3013cac65 (diff)
downloadupstream-53f6feb5572a0a29918358a22f86bb9649fcd5b8.tar.gz
upstream-53f6feb5572a0a29918358a22f86bb9649fcd5b8.tar.bz2
upstream-53f6feb5572a0a29918358a22f86bb9649fcd5b8.zip
omap24xx: Some retu/tahvo IRQ fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29233 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/omap24xx/patches-3.1/253-cbus-tahvo-irq-reg-lock.patch')
-rw-r--r--target/linux/omap24xx/patches-3.1/253-cbus-tahvo-irq-reg-lock.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/target/linux/omap24xx/patches-3.1/253-cbus-tahvo-irq-reg-lock.patch b/target/linux/omap24xx/patches-3.1/253-cbus-tahvo-irq-reg-lock.patch
new file mode 100644
index 0000000000..c27a67c7c9
--- /dev/null
+++ b/target/linux/omap24xx/patches-3.1/253-cbus-tahvo-irq-reg-lock.patch
@@ -0,0 +1,15 @@
+Index: linux-3.1.1/drivers/cbus/tahvo.c
+===================================================================
+--- linux-3.1.1.orig/drivers/cbus/tahvo.c 2011-11-17 18:51:03.708374259 +0100
++++ linux-3.1.1/drivers/cbus/tahvo.c 2011-11-17 18:57:17.739067493 +0100
+@@ -137,8 +137,10 @@ static irqreturn_t tahvo_irq_handler(int
+ u16 id;
+ u16 im;
+
++ mutex_lock(&tahvo->mutex);
+ id = __tahvo_read_reg(tahvo, TAHVO_REG_IDR);
+ im = __tahvo_read_reg(tahvo, TAHVO_REG_IMR);
++ mutex_unlock(&tahvo->mutex);
+ id &= ~im;
+
+ if (!id) {