Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a28b883 authored by Sebastian Andrzej Siewior's avatar Sebastian Andrzej Siewior
Browse files

input: ti_am335x_tsc: return IRQ_NONE if there was no IRQ for us



The previous patch ("input/ti_am335x_tsc: ACK the HW_PEN irq in ISR")
acked the interrupt so we don't freeze if we don't handle an enabled
interrupt source. The interrupt core has a mechanism for this and to get
it work one should only say that it handled an interrupt if it is
actually the case.

Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
parent 00789e5d
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -314,11 +314,13 @@ static irqreturn_t titsc_irq(int irq, void *dev)
		titsc_writel(ts_dev, REG_IRQCLR, IRQENB_HW_PEN);
	}

	if (irqclr) {
		titsc_writel(ts_dev, REG_IRQSTATUS, irqclr);

		am335x_tsc_se_update(ts_dev->mfd_tscadc);
		return IRQ_HANDLED;
	}
	return IRQ_NONE;
}

static int titsc_parse_dt(struct platform_device *pdev,
					struct titsc *ts_dev)