linux/drivers/input
Dmitry Torokhov 5f76955ab1 Input: stmfts - do not leave device disabled in stmfts_input_open
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>
2022-05-26 09:57:07 -07:00
..
gameport bus: Make remove callback return void 2021-07-21 11:53:42 +02:00
joystick Input: add Raspberry Pi Sense HAT joystick driver 2022-04-24 18:25:02 -07:00
keyboard Input: gpio-keys - cancel delayed work only in case of GPIO 2022-05-26 09:56:40 -07:00
misc Input: sparcspkr - fix refcount leak in bbc_beep_probe 2022-05-16 21:10:11 -07:00
mouse Input: cypress_ps2 - fix typo in comment 2022-05-21 12:48:39 -07:00
rmi4 Input: synaptics-rmi4 - remove unnecessary flush_workqueue() 2022-04-24 18:25:09 -07:00
serio Linux 5.17-rc4 2022-02-18 13:30:38 -08:00
tablet Merge branch 'ib/5.17-cros-ec-keyb' into next 2022-05-18 15:02:27 -07:00
touchscreen Input: stmfts - do not leave device disabled in stmfts_input_open 2022-05-26 09:57:07 -07:00
apm-power.c
evbug.c Input: evbug - remove an empty comment block 2021-05-24 21:06:39 -07:00
evdev.c Input: evdev - per-client waitgroups 2020-10-06 18:34:15 -07:00
ff-core.c Input: ff-core - correct magnitude setting for rumble compatibility 2021-12-06 23:24:03 -08:00
ff-memless.c Input: ff-memless - kill timer in destroy() 2019-11-15 11:45:03 -08:00
input-compat.c
input-compat.h
input-leds.c
input-mt.c Input: MT - avoid comma separated statements 2020-08-25 10:26:05 -07:00
input-poller.c Input: use input_device_enabled() 2020-12-02 22:10:33 -08:00
input-poller.h
input.c Input: remove unneeded variable in input_inhibit_device() 2022-04-24 18:24:59 -07:00
joydev.c HID: nintendo: add IMU support 2021-10-27 10:05:52 +02:00
Kconfig Input: extract ChromeOS vivaldi physmap show function 2022-03-14 21:11:09 -07:00
Makefile Input: extract ChromeOS vivaldi physmap show function 2022-03-14 21:11:09 -07:00
matrix-keymap.c
mousedev.c
sparse-keymap.c Input: Use fallthrough pseudo-keyword 2020-07-07 11:25:54 -07:00
touchscreen.c Input: touchscreen - avoid bitwise vs logical OR warning 2021-10-15 22:22:54 -07:00
vivaldi-fmap.c Input: extract ChromeOS vivaldi physmap show function 2022-03-14 21:11:09 -07:00