]> git.baikalelectronics.ru Git - kernel.git/commit
Input: iqs5xx - allow more time for ATI to complete
authorJeff LaBundy <jeff@labundy.com>
Mon, 25 Jan 2021 04:41:38 +0000 (20:41 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 25 Jan 2021 04:49:11 +0000 (20:49 -0800)
commitc70e81983c3f833f71f8690dab50826f8c3af43f
treeba8a436e8955958b75cf6692d2ba3e426fcf5c82
parent75d0abae088a586e687f398923db44abc70b5dac
Input: iqs5xx - allow more time for ATI to complete

After the device is initialized, it runs ATI (calibration) during
which it cannot readily respond to I2C communication. To keep the
open and close callbacks from writing to the device too soon, the
driver waits 100 ms before returning from probe.

The vendor reports that ATI may actually take up to 250 ms to run
(including margin), so increase the delay accordingly. Update the
comments to clarify the reason for the delay as well.

Signed-off-by: Jeff LaBundy <jeff@labundy.com>
Link: https://lore.kernel.org/r/1611002626-5889-9-git-send-email-jeff@labundy.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/iqs5xx.c