mfd: Leave acknowledgement of WM831x touchscreen IRQs to the driver
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 14 Jan 2011 13:38:16 +0000 (13:38 +0000)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 23 Mar 2011 09:41:43 +0000 (10:41 +0100)
The WM831x touchscreen interrupts need acknowledgement even when using
direct signals to the CPU (which don't go through the core) so leave
the acknowledgement up to the touchscreen driver for simplicity.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/wm831x-irq.c

index f7192d438aabf17f209ec9959aaa7f7db98078d4..2691648e607eabb10bb13cba21fa774f43a8c201 100644 (file)
@@ -481,6 +481,9 @@ static irqreturn_t wm831x_irq_thread(int irq, void *data)
        }
 
 out:
+       /* Touchscreen interrupts are handled specially in the driver */
+       status_regs[0] &= ~(WM831X_TCHDATA_EINT | WM831X_TCHPD_EINT);
+
        for (i = 0; i < ARRAY_SIZE(status_regs); i++) {
                if (status_regs[i])
                        wm831x_reg_write(wm831x, WM831X_INTERRUPT_STATUS_1 + i,