Input: edt-ft5x06 - add delay after waking up
authorPhilipp Puschmann <p.puschmann@pironex.com>
Fri, 5 May 2023 18:48:45 +0000 (11:48 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 5 May 2023 18:50:14 +0000 (11:50 -0700)
commit5672bd308ef23b81eb40dd2963f925fd671a66c2
tree028a8ebb43725e3d0c9f4129300c2ba1f6988c51
parent3c98b8dbdced5d93cc7dfed0a1991fb265488bd9
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>
drivers/input/touchscreen/edt-ft5x06.c