summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorJeff LaBundy <jeff@labundy.com>2023-01-03 18:58:59 +0100
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2023-01-11 01:56:27 +0100
commite023cc4abde3c01b895660b0e5a8488deb36b8c1 (patch)
tree787d621dc156d3d66907e5cdd3ba3a44cd78192d /drivers/input
parentInput: iqs269a - drop unused device node references (diff)
downloadlinux-e023cc4abde3c01b895660b0e5a8488deb36b8c1.tar.xz
linux-e023cc4abde3c01b895660b0e5a8488deb36b8c1.zip
Input: iqs269a - increase interrupt handler return delay
The time the device takes to deassert its RDY output following an I2C stop condition scales with the core clock frequency. To prevent level-triggered interrupts from being reasserted after the interrupt handler returns, increase the time before returning to account for the worst-case delay (~140 us) plus margin. Fixes: 04e49867fad1 ("Input: add support for Azoteq IQS269A") Signed-off-by: Jeff LaBundy <jeff@labundy.com> Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> Link: https://lore.kernel.org/r/Y7Rs484ypy4dab5G@nixie71 Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/misc/iqs269a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/iqs269a.c b/drivers/input/misc/iqs269a.c
index 7cda4a9a8560..e299b22b6fdb 100644
--- a/drivers/input/misc/iqs269a.c
+++ b/drivers/input/misc/iqs269a.c
@@ -153,7 +153,7 @@
#define IQS269_PWR_MODE_POLL_SLEEP_US IQS269_ATI_POLL_SLEEP_US
#define IQS269_PWR_MODE_POLL_TIMEOUT_US IQS269_ATI_POLL_TIMEOUT_US
-#define iqs269_irq_wait() usleep_range(100, 150)
+#define iqs269_irq_wait() usleep_range(200, 250)
enum iqs269_local_cap_size {
IQS269_LOCAL_CAP_SIZE_0,