Input: tsc2007 - enable cansleep pendown GPIO
authorBenjamin Bara <benjamin.bara@skidata.com>
Sun, 2 Apr 2023 23:55:27 +0000 (16:55 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 3 Apr 2023 04:37:49 +0000 (21:37 -0700)
commit1661f60adc3b7e6864b4cb6790d579b468bd243f
tree2f69e4beb5d1289e8ba4d0ac87d91fbcead52481
parentfdefcbdd6f3618410a0afb2ac0071c04036f9602
Input: tsc2007 - enable cansleep pendown GPIO

When a hard IRQ is triggered, the soft IRQ, which decides if an actual
pen down happened, should always be triggered. This enables the usage of
"can_sleep" GPIO chips as "pen down" GPIO, as the value is not read
during the hard IRQ anymore. This might be the case if the GPIO chip is
an expander behind i2c.

Signed-off-by: Benjamin Bara <benjamin.bara@skidata.com>
Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
Link: https://lore.kernel.org/r/20230328-tsc2007-sleep-v5-1-fc55e76d0ced@skidata.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/tsc2007_core.c