mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-17 18:36:00 +00:00
input: ti_am33x_tsc: remove unwanted fifo flush
When touchscreen and ADC are used together, this unwanted fifo flush leads to loss of ADC data. Signed-off-by: Patil, Rachna <rachna@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
This commit is contained in:
parent
bb76dc09dd
commit
af9c2fe374
@ -252,8 +252,6 @@ static irqreturn_t titsc_irq(int irq, void *dev)
|
||||
unsigned int x = 0, y = 0;
|
||||
unsigned int z1, z2, z;
|
||||
unsigned int fsm;
|
||||
unsigned int fifo1count, fifo0count;
|
||||
int i;
|
||||
|
||||
status = titsc_readl(ts_dev, REG_IRQSTATUS);
|
||||
if (status & IRQENB_FIFO0THRES) {
|
||||
@ -262,14 +260,6 @@ static irqreturn_t titsc_irq(int irq, void *dev)
|
||||
z1 = titsc_readl(ts_dev, REG_FIFO0) & 0xfff;
|
||||
z2 = titsc_readl(ts_dev, REG_FIFO1) & 0xfff;
|
||||
|
||||
fifo1count = titsc_readl(ts_dev, REG_FIFO1CNT);
|
||||
for (i = 0; i < fifo1count; i++)
|
||||
titsc_readl(ts_dev, REG_FIFO1);
|
||||
|
||||
fifo0count = titsc_readl(ts_dev, REG_FIFO0CNT);
|
||||
for (i = 0; i < fifo0count; i++)
|
||||
titsc_readl(ts_dev, REG_FIFO0);
|
||||
|
||||
if (ts_dev->pen_down && z1 != 0 && z2 != 0) {
|
||||
/*
|
||||
* Calculate pressure using formula
|
||||
|
Loading…
x
Reference in New Issue
Block a user