History

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.

Benjamin Tissoires committed 7 years ago

Commit d43c17e1 parent a50e8e23 files · +56 −34Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/hid.h+1−1
@@ -893,7 +893,7 @@ struct hid_field *hidinput_get_led_field(struct hid_device *hid); · 892 unmodified lines
893unsigned int hidinput_count_leds(struct hid_device *hid);893unsigned int hidinput_count_leds(struct hid_device *hid);
894__s32 hidinput_calc_abs_res(const struct hid_field *field, __u16 code);894__s32 hidinput_calc_abs_res(const struct hid_field *field, __u16 code);
895void hid_output_report(struct hid_report *report, __u8 *data);895void hid_output_report(struct hid_report *report, __u8 *data);
896void __hid_request(struct hid_device *hid, struct hid_report *rep, int reqtype);896int __hid_request(struct hid_device *hid, struct hid_report *rep, int reqtype);
897u8 *hid_alloc_report_buf(struct hid_report *report, gfp_t flags);897u8 *hid_alloc_report_buf(struct hid_report *report, gfp_t flags);
898struct hid_device *hid_allocate_device(void);898struct hid_device *hid_allocate_device(void);
899struct hid_report *hid_register_report(struct hid_device *device,899struct hid_report *hid_register_report(struct hid_device *device,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t