]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Input: edt-ft5x06 - work around first register access error
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 10 Jan 2020 01:03:21 +0000 (17:03 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:36:45 +0000 (08:36 +0100)
commit1e703d621b9ca8a23d9348e735e5152fd1efd709
treec0b40add8e6d338fa41638cd36267db3f636fde2
parent2b1fd461067f32a0a64e735c41e4b0b1da075584
Input: edt-ft5x06 - work around first register access error

[ Upstream commit e112324cc0422c046f1cf54c56f333d34fa20885 ]

The EP0700MLP1 returns bogus data on the first register read access
(reading the threshold parameter from register 0x00):

    edt_ft5x06 2-0038: crc error: 0xfc expected, got 0x40

It ignores writes until then. This patch adds a dummy read after which
the number of sensors and parameter read/writes work correctly.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Tested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/touchscreen/edt-ft5x06.c