omap24xx: Some retu/tahvo IRQ fixes
[librecmc/librecmc.git] / target / linux / omap24xx / patches-3.1 / 253-cbus-tahvo-irq-reg-lock.patch
1 Index: linux-3.1.1/drivers/cbus/tahvo.c
2 ===================================================================
3 --- linux-3.1.1.orig/drivers/cbus/tahvo.c       2011-11-17 18:51:03.708374259 +0100
4 +++ linux-3.1.1/drivers/cbus/tahvo.c    2011-11-17 18:57:17.739067493 +0100
5 @@ -137,8 +137,10 @@ static irqreturn_t tahvo_irq_handler(int
6         u16                     id;
7         u16                     im;
8  
9 +       mutex_lock(&tahvo->mutex);
10         id = __tahvo_read_reg(tahvo, TAHVO_REG_IDR);
11         im = __tahvo_read_reg(tahvo, TAHVO_REG_IMR);
12 +       mutex_unlock(&tahvo->mutex);
13         id &= ~im;
14  
15         if (!id) {