]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - drivers/hid/hid-input.c
HID: input: make sure the wheel high resolution multiplier is set
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Wed, 3 Apr 2019 14:20:20 +0000 (16:20 +0200)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Wed, 24 Apr 2019 13:25:29 +0000 (15:25 +0200)
commitd43c17ead879ba7c076dc2f5fd80cd76047c9ff4
treea7914ab47df0cd026d7ffc3b1e32519c80352a43
parenta50e8e2ecc1428df28c748c6af6255eb65faf9f3
HID: input: make sure the wheel high resolution multiplier is set

Some old mice have a tendency to not accept the high resolution multiplier.
They reply with a -EPIPE which was previously ignored.

Force the call to resolution multiplier to be synchronous and actually
check for the answer. If this fails, consider the mouse like a normal one.

Fixes: 2dc702c991e377 ("HID: input: use the Resolution Multiplier for
       high-resolution scrolling")
Link: https://bugzilla.redhat.com/show_bug.cgi?id=1700071
Reported-and-tested-by: James Feeney <james@nurealm.net>
Cc: stable@vger.kernel.org # v5.0+
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
drivers/hid/hid-core.c
drivers/hid/hid-input.c
include/linux/hid.h