linux-stable/drivers/input
Dmitry Torokhov 258222321f Input: stmfts - do not leave device disabled in stmfts_input_open
[ Upstream commit 5f76955ab1 ]

The commit 26623eea0d attempted to deal with potential leak of runtime
PM counter when opening the touchscreen device, however it ended up
erroneously dropping the counter in the case of successfully enabling the
device.

Let's address this by using pm_runtime_resume_and_get() and then executing
pm_runtime_put_sync() only when we fail to send "sense on" command to the
device.

Fixes: 26623eea0d ("Input: stmfts - fix reference leak in stmfts_input_open")
Reported-by: Pavel Machek <pavel@denx.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-09 10:26:11 +02:00
..
gameport
joystick Merge branch 'next' into for-linus 2022-01-15 12:09:44 -08:00
keyboard Input: gpio-keys - cancel delayed work only in case of GPIO 2022-06-09 10:25:35 +02:00
misc Input: sparcspkr - fix refcount leak in bbc_beep_probe 2022-06-09 10:26:08 +02:00
mouse Input: elan_i2c - fix regulator enable count imbalance after suspend/resume 2022-03-01 20:41:22 -08:00
rmi4 Input: synaptics-rmi4 - Fix device hierarchy 2021-11-05 19:46:21 -07:00
serio Merge branch 'next' into for-linus 2022-01-15 12:09:44 -08:00
tablet Input: aiptek - properly check endpoint type 2022-03-14 18:15:11 -07:00
touchscreen Input: stmfts - do not leave device disabled in stmfts_input_open 2022-06-09 10:26:11 +02:00
apm-power.c
evbug.c
evdev.c
ff-core.c Input: ff-core - correct magnitude setting for rumble compatibility 2021-12-06 23:24:03 -08:00
ff-memless.c
input-compat.c
input-compat.h
input-leds.c
input-mt.c
input-poller.c
input-poller.h
input.c Input: add bounds checking to input_set_capability() 2022-05-25 09:58:59 +02:00
joydev.c HID: nintendo: add IMU support 2021-10-27 10:05:52 +02:00
Kconfig
Makefile
matrix-keymap.c
mousedev.c
sparse-keymap.c
touchscreen.c