]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Input: ads7846 - fix race that causes missing releases
authorDavid Jander <david@protonic.nl>
Wed, 11 Nov 2020 19:00:59 +0000 (11:00 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Dec 2020 12:46:54 +0000 (13:46 +0100)
commit9f2dadeb11603ab0994c8353817b4cb90d22d2e7
tree6469426da80dabc9e1b96c0cbcae7921d375ad78
parent8c2031e5c0700ea30df3beae92d70f5f053f5cdb
Input: ads7846 - fix race that causes missing releases

[ Upstream commit e52cd628a03f72a547dbf90ccb703ee64800504a ]

If touchscreen is released while busy reading HWMON device, the release
can be missed. The IRQ thread is not started because no touch is active
and BTN_TOUCH release event is never sent.

Fixes: f5a28a7d4858f94a ("Input: ads7846 - avoid pen up/down when reading hwmon")
Co-developed-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: David Jander <david@protonic.nl>
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Link: https://lore.kernel.org/r/20201027105416.18773-1-o.rempel@pengutronix.de
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/touchscreen/ads7846.c