Commit be4c522b3c7682d82cebd45d0ff3f4c72bac5269
Committed by
Kishon Vijay Abraham I
1 parent
e08e4c85d4
Exists in
ti-linux-3.12.y
and in
3 other branches
input: touchscreen: pixcir: also trigger IRQ on rising edge
We want to make sure we never miss penup/down events and the easiest way is to also trigger IRQ on the rising edge. This will make sure that when we touch or release the touchscreen surface, an IRQ will be fired and our ISR handler will be called, thus avoiding missed events. Fixes #D-01570 - Cap touch screen issue Tested-by: Franklin Cooper Jr <fcooper@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
drivers/input/touchscreen/pixcir_i2c_ts.c
... | ... | @@ -480,7 +480,8 @@ |
480 | 480 | } |
481 | 481 | |
482 | 482 | error = devm_request_threaded_irq(dev, client->irq, NULL, pixcir_ts_isr, |
483 | - IRQF_TRIGGER_FALLING | IRQF_ONESHOT, | |
483 | + IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING | |
484 | + | IRQF_ONESHOT, | |
484 | 485 | client->name, tsdata); |
485 | 486 | if (error) { |
486 | 487 | dev_err(dev, "failed to request irq %d\n", client->irq); |