Skip to content

Commit 953c7d0

Browse files
broonieSamuel Ortiz
authored andcommitted
mfd: Still check other interrupts if we get a wm831x touchscreen IRQ
It is possible that we will see another interrupt triggering at the same time as the touchscreen interrupts so it's still worth checking other possible sources. Almost all of the win from the fast path comes from only needing to read the primary register and saving the I/O costs. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
1 parent e338033 commit 953c7d0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎drivers/mfd/wm831x-irq.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,8 +472,7 @@ static irqreturn_t wm831x_irq_thread(int irq, void *data)
472472
handle_nested_irq(wm831x->irq_base + WM831X_IRQ_TCHPD);
473473
if (primary & WM831X_TCHDATA_INT)
474474
handle_nested_irq(wm831x->irq_base + WM831X_IRQ_TCHDATA);
475-
if (primary & (WM831X_TCHDATA_EINT | WM831X_TCHPD_EINT))
476-
goto out;
475+
primary &= ~(WM831X_TCHDATA_EINT | WM831X_TCHPD_EINT);
477476

478477
for (i = 0; i < ARRAY_SIZE(wm831x_irqs); i++) {
479478
int offset = wm831x_irqs[i].reg - 1;

0 commit comments

Comments
 (0)