]> git.baikalelectronics.ru Git - kernel.git/commit
Input: ili210x - export ili251x version details via sysfs
authorMarek Vasut <marex@denx.de>
Sun, 17 Oct 2021 04:39:04 +0000 (21:39 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 17 Oct 2021 05:29:34 +0000 (22:29 -0700)
commit057313e1c7ce590c808bedb8502340b3a2692f62
tree9d108d71eb81d388906bd26897018cb4f5e71fc7
parent2f5a4f3c6a876384e262b2bfd9bca3ef441cc4e8
Input: ili210x - export ili251x version details via sysfs

The ili251x firmware protocol permits readout of firmware version,
protocol version, mcu version and current mode (application, boot
loader, forced update). These information are useful when updating
the firmware on the il251x, e.g. to avoid updating the same firmware
into the device multiple times. The locking is now necessary to avoid
races between interrupt handler and the sysfs readouts.

Note that the protocol differs considerably between the ili2xxx devices,
this patch therefore implements this functionality only for ili251x that
I can test.

Signed-off-by: Marek Vasut <marex@denx.de>
Link: https://lore.kernel.org/r/20210831202506.181927-2-marex@denx.de
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/ili210x.c