Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Input: edt-ft5x06 - add delay after waking up

The touch controller needs some time to wake-up after setting the wake-up
gpio. Without having a delay after wake-up probing regularly fails in
edt_ft5x06_ts_identify() with an error (i.e. EREMOTEIO) that was caused
by a failed i2c transfer.

The datasheet sets the wake-up time to 5 ms, although it is not entirely
clear.

Signed-off-by: Philipp Puschmann <p.puschmann@pironex.com>
Link: https://lore.kernel.org/r/20230505115823.545803-1-p.puschmann@pironex.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Philipp Puschmann and committed by
Dmitry Torokhov
5672bd30 3c98b8db

+1
+1
drivers/input/touchscreen/edt-ft5x06.c
··· 1241 1241 if (tsdata->wake_gpio) { 1242 1242 usleep_range(5000, 6000); 1243 1243 gpiod_set_value_cansleep(tsdata->wake_gpio, 1); 1244 + usleep_range(5000, 6000); 1244 1245 } 1245 1246 1246 1247 if (tsdata->reset_gpio) {