summaryrefslogtreecommitdiff
path: root/include/linux/input
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2022-07-18 13:56:40 +0530
committerVignesh Raghavendra <vigneshr@ti.com>2022-08-04 20:39:49 +0530
commite3ddbf4c95b151d3bc2e01d160c5237a1b9661a7 (patch)
tree0d7282b5488d34addf169080f15777486218060f /include/linux/input
parent19fa1502fa71c5227a45f227c375cfebc6d255ab (diff)
Input: ili210x - improve polled sample spacing
commit 8639e042ad6aca7fc2a5b2fe8652396e2f522627 upstream Currently the ili210x driver implements a threaded interrupt handler which starts upon edge on the interrupt line, and then polls the touch controller for samples. Every time a sample is obtained from the controller, the thread function checks whether further polling is required, and if so, waits fixed amount of time before polling for next sample. The delay between consecutive samples can thus vary greatly, because the I2C transfer required to retrieve the sample from the controller takes different amount of time on different platforms. Furthermore, different models of the touch controllers supported by this driver require different delays during retrieval of samples too. Instead of waiting fixed amount of time before polling for next sample, determine how much time passed since the beginning of sampling cycle and then wait only the remaining amount of time within the sampling cycle. This makes the driver deliver samples with equal spacing between them. Signed-off-by: Marek Vasut <marex@denx.de> Link: https://lore.kernel.org/r/20211108005216.480525-1-marex@denx.de Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Diffstat (limited to 'include/linux/input')
0 files changed, 0 insertions, 0 deletions