kernel_optimize_test/drivers/input/touchscreen
Dmitry Torokhov baf86afed7 Input: stmfts - do not leave device disabled in stmfts_input_open
[ Upstream commit 5f76955ab1e43e5795a9631b22ca4f918a0ae986 ]

The commit 26623eea0da3 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: 26623eea0da3 ("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:21:18 +02:00
..
88pm860x-ts.c
ad7877.c
ad7879-i2c.c
ad7879-spi.c
ad7879.c
ad7879.h
ads7846.c Input: ads7846 - fix unaligned access on 7845 2020-12-30 11:53:14 +01:00
ar1021_i2c.c
atmel_mxt_ts.c Input: atmel_mxt_ts - fix double free in mxt_read_info_block 2021-12-29 12:26:01 +01:00
auo-pixcir-ts.c
bcm_iproc_tsc.c
bu21013_ts.c
bu21029_ts.c
chipone_icn8318.c
chipone_icn8505.c
colibri-vf50-ts.c
cy8ctma140.c
cy8ctmg110_ts.c
cyttsp_core.c
cyttsp_core.h
cyttsp_i2c_common.c
cyttsp_i2c.c
cyttsp_spi.c
cyttsp4_core.c
cyttsp4_core.h
cyttsp4_i2c.c
cyttsp4_spi.c
da9034-ts.c
da9052_tsi.c
dynapro.c
edt-ft5x06.c
eeti_ts.c
egalax_ts_serial.c
egalax_ts.c
ektf2127.c
elants_i2c.c Input: elants_i2c - do not check Remark ID on eKTH3900/eKTH5312 2021-12-29 12:26:06 +01:00
elo.c Input: elo - fix an error code in elo_connect() 2021-03-04 11:38:10 +01:00
exc3000.c
fsl-imx25-tcq.c
fujitsu_ts.c
goodix.c Input: goodix - add id->model mapping for the "9111" model 2021-12-29 12:26:06 +01:00
gunze.c
hampshire.c
hideep.c Input: hideep - fix the uninitialized use in hideep_nvm_unlock() 2021-07-20 16:05:44 +02:00
hp680_ts_input.c
htcpen.c
ili210x.c Input: ili210x - fix reset timing 2022-05-25 09:18:01 +02:00
imx6ul_tsc.c
inexio.c
ipaq-micro-ts.c
iqs5xx.c
jornada720_ts.c
Kconfig
lpc32xx_ts.c
mainstone-wm97xx.c
Makefile
max11801_ts.c
mc13783_ts.c
mcs5000_ts.c
melfas_mip4.c
migor_ts.c
mk712.c
mms114.c
mtouch.c
mxs-lradc-ts.c
of_touchscreen.c Input: touchscreen - avoid bitwise vs logical OR warning 2021-12-22 09:30:58 +01:00
pcap_ts.c
penmount.c
pixcir_i2c_ts.c
raspberrypi-ts.c
raydium_i2c_ts.c Input: raydium_ts_i2c - do not send zero length 2021-03-04 11:38:23 +01:00
resistive-adc-touch.c
rohm_bu21023.c
s3c2410_ts.c
s6sy761.c Input: s6sy761 - fix coordinate read bit shift 2021-04-21 13:00:54 +02:00
silead.c Input: silead - add workaround for x86 BIOS-es which bring the chip up in a stuck state 2021-05-22 11:40:52 +02:00
sis_i2c.c
st1232.c
stmfts.c Input: stmfts - do not leave device disabled in stmfts_input_open 2022-06-09 10:21:18 +02:00
stmpe-ts.c
sun4i-ts.c
sur40.c Input: sur40 - fix an error code in sur40_probe() 2021-03-04 11:38:09 +01:00
surface3_spi.c
sx8654.c
ti_am335x_tsc.c
touchit213.c
touchright.c
touchwin.c
tps6507x-ts.c
ts4800-ts.c
tsc40.c
tsc200x-core.c
tsc200x-core.h
tsc2004.c
tsc2005.c
tsc2007_core.c
tsc2007_iio.c
tsc2007.h
ucb1400_ts.c
usbtouchscreen.c Input: usbtouchscreen - fix control-request directions 2021-07-14 16:55:37 +02:00
wacom_i2c.c
wacom_w8001.c
wdt87xx_i2c.c
wm97xx-core.c
wm831x-ts.c
wm9705.c
wm9712.c
wm9713.c
zet6223.c
zforce_ts.c
zinitix.c Input: zinitix - do not report shadow fingers 2022-04-08 14:39:48 +02:00
zylonite-wm97xx.c