linux/drivers/input/touchscreen
Evan Green f6123db977 Input: atmel_mxt_ts - disable IRQ across suspend
[ Upstream commit 463fa44eec ]

Across suspend and resume, we are seeing error messages like the following:

atmel_mxt_ts i2c-PRP0001:00: __mxt_read_reg: i2c transfer failed (-121)
atmel_mxt_ts i2c-PRP0001:00: Failed to read T44 and T5 (-121)

This occurs because the driver leaves its IRQ enabled. Upon resume, there
is an IRQ pending, but the interrupt is serviced before both the driver and
the underlying I2C bus have been resumed. This causes EREMOTEIO errors.

Disable the IRQ in suspend, and re-enable it on resume. If there are cases
where the driver enters suspend with interrupts disabled, that's a bug we
should fix separately.

Signed-off-by: Evan Green <evgreen@chromium.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-04 19:12:36 +01:00
..
88pm860x-ts.c
ad7877.c
ad7879-i2c.c
ad7879-spi.c
ad7879.c
ad7879.h
ads7846.c
ar1021_i2c.c
atmel_mxt_ts.c Input: atmel_mxt_ts - disable IRQ across suspend 2020-01-04 19:12:36 +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
cy8ctmg110_ts.c
cyttsp_core.c
cyttsp_core.h
cyttsp_i2c_common.c
cyttsp_i2c.c
cyttsp_spi.c
cyttsp4_core.c Input: cyttsp4_core - fix use after free bug 2019-12-13 08:51:03 +01:00
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
elo.c
exc3000.c
fsl-imx25-tcq.c
fujitsu_ts.c
goodix.c Input: goodix - add upside-down quirk for Teclast X89 tablet 2019-12-13 08:52:39 +01:00
gunze.c
hampshire.c
hideep.c
hp680_ts_input.c
htcpen.c
ili210x.c
imx6ul_tsc.c
inexio.c
ipaq-micro-ts.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
pcap_ts.c
penmount.c
pixcir_i2c_ts.c
raydium_i2c_ts.c
resistive-adc-touch.c
rohm_bu21023.c
s3c2410_ts.c
s6sy761.c
silead.c Input: silead - try firmware reload after unsuccessful resume 2019-11-24 08:20:28 +01:00
sis_i2c.c
st1232.c Input: st1232 - set INPUT_PROP_DIRECT property 2019-11-24 08:20:28 +01:00
stmfts.c
stmpe-ts.c
sun4i-ts.c
sur40.c
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
w90p910_ts.c
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
zylonite-wm97xx.c