diff options
author | 2019-04-03 16:20:20 +0200 | |
---|---|---|
committer | 2019-04-24 15:25:29 +0200 | |
commit | d43c17ead879ba7c076dc2f5fd80cd76047c9ff4 (patch) | |
tree | a7914ab47df0cd026d7ffc3b1e32519c80352a43 /include/linux/hid.h | |
parent | HID: intel-ish-hid: Add Comet Lake PCI device ID (diff) | |
download | linux-d43c17ead879ba7c076dc2f5fd80cd76047c9ff4.tar.gz linux-d43c17ead879ba7c076dc2f5fd80cd76047c9ff4.tar.bz2 linux-d43c17ead879ba7c076dc2f5fd80cd76047c9ff4.zip |
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>
Diffstat (limited to 'include/linux/hid.h')
-rw-r--r-- | include/linux/hid.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index f9707d1dcb58..2c69340d372d 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h @@ -893,7 +893,7 @@ struct hid_field *hidinput_get_led_field(struct hid_device *hid); unsigned int hidinput_count_leds(struct hid_device *hid); __s32 hidinput_calc_abs_res(const struct hid_field *field, __u16 code); void hid_output_report(struct hid_report *report, __u8 *data); -void __hid_request(struct hid_device *hid, struct hid_report *rep, int reqtype); +int __hid_request(struct hid_device *hid, struct hid_report *rep, int reqtype); u8 *hid_alloc_report_buf(struct hid_report *report, gfp_t flags); struct hid_device *hid_allocate_device(void); struct hid_report *hid_register_report(struct hid_device *device, |