OSDN Git Service

input: touchscreen: don't allow ITE tech driver to do infinite i2c checks
authorShantanu Jain <shjain@codeaurora.org>
Thu, 10 Dec 2015 10:57:17 +0000 (16:27 +0530)
committerAbinaya P <abinayap@codeaurora.org>
Fri, 5 Aug 2016 14:52:47 +0000 (20:22 +0530)
commit28181fbc4c585466a0eaebe95d7506f1b57029b7
tree3d4d05d7672bfca3cb484c61028c7b66438226f5
parentfb07736a10f8aed54e9f332cb0e0f11af284a023
input: touchscreen: don't allow ITE tech driver to do infinite i2c checks

Don't allow ITE tech driver to check the status of the controller forever
before any i2c read/write, instead make it to 10 times only.
In case of firmware flashing and external calibration features, this is
made to 500 times.

This is a propagated patch from 3.18 kernel
'commit 5e8c98c6705b ("input: touchscreen: don't allow ITE tech driver
to do infinite i2c checks")'

Change-Id: I88e024700de43cc9f712fd7fa509fcb387f9cd21
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
drivers/input/touchscreen/it7258_ts_i2c.c