]> git.baikalelectronics.ru Git - kernel.git/commit
Input: exc3000 - add support to query model and fw_version
authorSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 6 Aug 2020 23:08:00 +0000 (16:08 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 7 Aug 2020 00:34:19 +0000 (17:34 -0700)
commit08c217e05bf13ee865193e420db4eea8a417c2db
tree37c7fd953cfa7ebd3d6c476bc4c7d4de2302cdc3
parentaec5f62f09180398bb56aa93c493acbc2e30967e
Input: exc3000 - add support to query model and fw_version

Expose model and fw_version via sysfs. Also query the model
in probe to make sure, that the I2C communication with the
device works before successfully probing the driver.

This is a bit complicated, since EETI devices do not have
a sync interface. Sending the commands and directly reading
does not work. Sending the command and waiting for some time
is also not an option, since there might be touch events in
the mean time.

Last but not least we do not cache the results, since this
interface can be used to check the I2C communication is still
working as expected.

Reviewed-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/20200805160520.456570-5-sebastian.reichel@collabora.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Documentation/ABI/testing/sysfs-driver-input-exc3000 [new file with mode: 0644]
drivers/input/touchscreen/exc3000.c