]> www.infradead.org Git - users/dwmw2/linux.git/commit
HID: i2c-hid: disable runtime PM operations on hantick touchpad
authorAnisse Astier <anisse@astier.eu>
Wed, 12 Sep 2018 13:07:05 +0000 (15:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Oct 2018 06:56:08 +0000 (08:56 +0200)
commit2083ef10dedd1afb7eff67bbb5624d181aee7c2c
treecad385240b0bff5edadbde22bc9f20cc47ee5265
parentf52ab52773680d116bcadf38feaa448d313f397a
HID: i2c-hid: disable runtime PM operations on hantick touchpad

commit 807588ac92018bde88a1958f546438e840eb0158 upstream.

This hantick HTIX5288 touchpad can quickly fall in a wrong state if
there are too many open/close operations. This will either make it stop
reporting any input, or will shift all the input reads by a few bytes,
making it impossible to decode.

Here, we never release the probed touchpad runtime pm while the driver
is loaded, which should disable all runtime pm suspend/resumes.

This fast repetition of sleep/wakeup is also more likely to happen when
using runtime PM, which is why the quirk is done there, and not for all
power downs, which would include suspend or module removal.

Signed-off-by: Anisse Astier <anisse@astier.eu>
Cc: stable@vger.kernel.org
Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Philip Müller <philm@manjaro.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/i2c-hid/i2c-hid.c