OrangePi_CM5/drivers/input/mouse
Hans de Goede a621ae6394 Input: elan_i2c - fix regulator enable count imbalance after suspend/resume
commit 04b7762e37c95d9b965d16bb0e18dbd1fa2e2861 upstream.

Before these changes elan_suspend() would only disable the regulator
when device_may_wakeup() returns false; whereas elan_resume() would
unconditionally enable it, leading to an enable count imbalance when
device_may_wakeup() returns true.

This triggers the "WARN_ON(regulator->enable_count)" in regulator_put()
when the elan_i2c driver gets unbound, this happens e.g. with the
hot-plugable dock with Elan I2C touchpad for the Asus TF103C 2-in-1.

Fix this by making the regulator_enable() call also be conditional
on device_may_wakeup() returning false.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20220131135436.29638-2-hdegoede@redhat.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-03-08 19:09:38 +01:00
..
Kconfig
…
Makefile
…
alps.c Input: alps - remove redundant assignment to variable ret 2020-08-06 17:33:41 -07:00
alps.h
…
amimouse.c
…
appletouch.c Input: appletouch - initialize work before device registration 2022-01-05 12:40:33 +01:00
atarimouse.c
…
bcm5974.c
…
byd.c
…
byd.h
…
cyapa.c
…
cyapa.h
…
cyapa_gen3.c Input: Use fallthrough pseudo-keyword 2020-07-07 11:25:54 -07:00
cyapa_gen5.c Input: Use fallthrough pseudo-keyword 2020-07-07 11:25:54 -07:00
cyapa_gen6.c Input: cyapa_gen6 - fix out-of-bounds stack access 2020-12-30 11:54:05 +01:00
cypress_ps2.c
…
cypress_ps2.h
…
elan_i2c.h Input: elan_i2c - add new trackpoint report type 0x5F 2021-03-07 12:34:04 +01:00
elan_i2c_core.c Input: elan_i2c - fix regulator enable count imbalance after suspend/resume 2022-03-08 19:09:38 +01:00
elan_i2c_i2c.c Input: elan_i2c - fix firmware update on newer ICs 2020-11-11 20:13:12 -08:00
elan_i2c_smbus.c Input: elan_i2c - add new trackpoint report type 0x5F 2021-03-07 12:34:04 +01:00
elantech.c Input: elantech - fix stack out of bound access in elantech_change_report_id() 2021-12-29 12:25:58 +01:00
elantech.h Input: elantech - fix protocol errors for some trackpoints in SMBus mode 2021-03-07 12:34:03 +01:00
focaltech.c
…
focaltech.h
…
gpio_mouse.c
…
hgpk.c Input: Use fallthrough pseudo-keyword 2020-07-07 11:25:54 -07:00
hgpk.h
…
inport.c
…
lifebook.c
…
lifebook.h
…
logibm.c
…
logips2pp.c
…
logips2pp.h
…
maplemouse.c
…
navpoint.c Input: Use fallthrough pseudo-keyword 2020-07-07 11:25:54 -07:00
pc110pad.c
…
psmouse-base.c Input: psmouse - add a newline when printing 'proto' by sysfs 2020-07-21 22:33:27 -07:00
psmouse-smbus.c
…
psmouse.h
…
pxa930_trkball.c
…
rpcmouse.c
…
sentelic.c Input: sentelic - fix error return when fsp_reg_write fails 2020-08-06 17:33:43 -07:00
sentelic.h
…
sermouse.c Input: Use fallthrough pseudo-keyword 2020-07-07 11:25:54 -07:00
synaptics.c Input: synaptics - enable InterTouch for ThinkPad T14 Gen 1 2020-10-05 10:13:55 -07:00
synaptics.h
…
synaptics_i2c.c
…
synaptics_usb.c
…
touchkit_ps2.c
…
touchkit_ps2.h
…
trackpoint.c Input: trackpoint - enable Synaptics trackpoints 2020-09-28 16:23:41 -07:00
trackpoint.h Input: trackpoint - add new trackpoint variant IDs 2020-09-14 12:24:46 -07:00
vmmouse.c
…
vmmouse.h
…
vsxxxaa.c
…