diff options
author | mb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-02-28 20:24:56 +0000 |
---|---|---|
committer | mb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-02-28 20:24:56 +0000 |
commit | 292d6a5ec26e4019878e7120b6070cecd06d957d (patch) | |
tree | da2126eaf3d19f9d0d61174f9c7eb876bd90f689 | |
parent | 9c26cd0e621418d3b12022f91bbc10d95841d629 (diff) |
cbus-retu: Add IRQ handler locking
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25796 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | target/linux/omap24xx/patches-2.6.38/506-cbus-retu-irq-handler-locking.patch | 18 |
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 000000000..364ffa386 --- /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; |