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.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -893,7 +893,7 @@ struct hid_field *hidinput_get_led_field(struct hid_device *hid); · 892 unmodified lines | ||
| 893 | 893 | unsigned int hidinput_count_leds(struct hid_device *hid); |
| 894 | 894 | __s32 hidinput_calc_abs_res(const struct hid_field *field, __u16 code); |
| 895 | 895 | void hid_output_report(struct hid_report *report, __u8 *data); |
| 896 | −void __hid_request(struct hid_device *hid, struct hid_report *rep, int reqtype); | |
| 896 | +int __hid_request(struct hid_device *hid, struct hid_report *rep, int reqtype); | |
| 897 | 897 | u8 *hid_alloc_report_buf(struct hid_report *report, gfp_t flags); |
| 898 | 898 | struct hid_device *hid_allocate_device(void); |
| 899 | 899 | struct hid_report *hid_register_report(struct hid_device *device, |