mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-05 05:21:32 +02:00
95ef6e1d42
Thank you Peter Wagner for the patch. I refreshed the kernel patches and added the md5sum of the kernel. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26905 3c298f89-4303-0410-b956-a3cf2f4a3e73
17 lines
403 B
Diff
17 lines
403 B
Diff
--- a/drivers/cbus/retu.c
|
|
+++ b/drivers/cbus/retu.c
|
|
@@ -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;
|