aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/omap24xx/patches-2.6.38
diff options
context:
space:
mode:
authorMichael Büsch <mb@bu3sch.de>2011-02-28 20:24:56 +0000
committerMichael Büsch <mb@bu3sch.de>2011-02-28 20:24:56 +0000
commit3e390fb827765b7e8c6e00efb4a74476ec080981 (patch)
tree81360925fc9cc0ccea8ffc036f77815486a53790 /target/linux/omap24xx/patches-2.6.38
parentad45e24bd01eaf47762f05024a86364eb05b8b95 (diff)
downloadupstream-3e390fb827765b7e8c6e00efb4a74476ec080981.tar.gz
upstream-3e390fb827765b7e8c6e00efb4a74476ec080981.tar.bz2
upstream-3e390fb827765b7e8c6e00efb4a74476ec080981.zip
cbus-retu: Add IRQ handler locking
SVN-Revision: 25796
Diffstat (limited to 'target/linux/omap24xx/patches-2.6.38')
-rw-r--r--target/linux/omap24xx/patches-2.6.38/506-cbus-retu-irq-handler-locking.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/target/linux/omap24xx/patches-2.6.38/506-cbus-retu-irq-handler-locking.patch b/target/linux/omap24xx/patches-2.6.38/506-cbus-retu-irq-handler-locking.patch
new file mode 100644
index 0000000000..364ffa386e
--- /dev/null
+++ b/target/linux/omap24xx/patches-2.6.38/506-cbus-retu-irq-handler-locking.patch
@@ -0,0 +1,18 @@
+Index: linux-2.6.38-rc6/drivers/cbus/retu.c
+===================================================================
+--- linux-2.6.38-rc6.orig/drivers/cbus/retu.c 2011-02-28 15:21:10.645505891 +0100
++++ linux-2.6.38-rc6/drivers/cbus/retu.c 2011-02-28 15:22:24.030477769 +0100
+@@ -198,10 +198,12 @@ static irqreturn_t retu_irq_handler(int
+ u16 idr;
+ u16 imr;
+
++ mutex_lock(&retu->mutex);
+ idr = __retu_read_reg(retu, RETU_REG_IDR);
+ imr = __retu_read_reg(retu, RETU_REG_IMR);
+- idr &= ~imr;
++ mutex_unlock(&retu->mutex);
+
++ idr &= ~imr;
+ if (!idr) {
+ dev_vdbg(retu->dev, "No IRQ, spurious?\n");
+ return IRQ_NONE;