Dmitry Torokhov
8b8ff4c793
HID: vivaldi: fix handling devices not using numbered reports
...
commit 3fe6acd4dc922237b30e55473c9349c6ce0690f3 upstream.
Unfortunately details of USB HID transport bled into HID core and
handling of numbered/unnumbered reports is quite a mess, with
hid_report_len() calculating the length according to USB rules,
and hid_hw_raw_request() adding report ID to the buffer for both
numbered and unnumbered reports.
Untangling it all requres a lot of changes in HID, so for now let's
handle this in the driver.
[jkosina@suse.cz: microoptimize field->report->id to report->id]
Fixes: 14c9c014babe ("HID: add vivaldi HID driver")
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Tested-by: Stephen Boyd <swboyd@chromium.org> # CoachZ
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-01-27 10:54:33 +01:00
..
2021-09-18 13:40:15 +02:00
2020-10-22 12:41:00 -07:00
2021-10-06 15:56:03 +02:00
2021-06-18 10:00:03 +02:00
2019-05-30 11:26:32 -07:00
2021-04-28 13:40:01 +02:00
2022-01-27 10:54:11 +01:00
2020-03-13 17:33:11 +01:00
2021-12-14 11:32:33 +01:00
2019-05-21 10:50:45 +02:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2021-10-06 15:56:03 +02:00
2021-12-14 11:32:34 +01:00
2019-05-30 11:26:32 -07:00
2021-12-14 11:32:34 +01:00
2019-06-05 17:36:37 +02:00
2021-07-14 16:55:57 +02:00
2021-12-14 11:32:34 +01:00
2020-08-17 11:38:49 +02:00
2021-04-28 13:40:01 +02:00
2019-09-03 16:52:04 +02:00
2020-10-23 13:23:44 +02:00
2021-06-18 10:00:03 +02:00
2019-10-03 15:36:40 -04:00
2021-12-14 11:32:34 +01:00
2019-05-30 11:26:32 -07:00
2021-12-14 11:32:34 +01:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-08-22 17:11:58 +02:00
2020-03-18 13:36:21 +01:00
2021-12-14 11:32:33 +01:00
2021-06-18 10:00:04 +02:00
2019-05-30 11:26:32 -07:00
2021-12-14 11:32:34 +01:00
2021-12-29 12:25:54 +01:00
2019-10-03 15:36:40 -04:00
2020-09-28 08:57:28 +00:00
2019-05-30 11:26:32 -07:00
2021-12-14 11:32:33 +01:00
2022-01-27 10:54:16 +01:00
2020-10-22 13:42:34 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-06-05 17:37:10 +02:00
2021-05-14 09:50:33 +02:00
2019-10-03 15:36:40 -04:00
2019-10-03 15:36:40 -04:00
2019-10-03 15:36:40 -04:00
2017-11-02 11:10:55 +01:00
2020-08-23 17:36:59 -05:00
2021-12-14 11:32:34 +01:00
2017-11-02 11:10:55 +01:00
2019-10-03 15:36:40 -04:00
2021-12-14 11:32:33 +01:00
2021-06-10 13:39:15 +02:00
2020-08-17 11:38:49 +02:00
2021-06-10 13:39:25 +02:00
2019-01-14 20:11:01 +01:00
2020-11-05 11:16:53 +01:00
2021-03-11 14:17:24 +01:00
2020-09-02 12:55:46 -07:00
2019-05-30 11:26:32 -07:00
2021-06-18 10:00:03 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-06-05 17:30:28 +02:00
2020-09-03 16:18:55 +02:00
2019-08-22 17:11:58 +02:00
2019-06-05 17:30:28 +02:00
2020-04-01 12:26:12 +02:00
2019-06-05 17:30:28 +02:00
2019-06-05 17:30:28 +02:00
2019-06-05 17:30:28 +02:00
2019-05-30 11:26:35 -07:00
2021-05-14 09:50:28 +02:00
2019-06-05 17:36:37 +02:00
2021-12-14 11:32:34 +01:00
2021-12-14 11:32:33 +01:00
2018-06-25 15:23:40 +02:00
2019-05-30 11:26:32 -07:00
2020-10-23 16:16:31 -07:00
2021-12-14 11:32:34 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2021-12-14 11:32:34 +01:00
2019-05-30 11:26:32 -07:00
2021-12-14 11:32:34 +01:00
2019-05-30 11:26:32 -07:00
2021-12-14 11:32:34 +01:00
2019-05-30 11:26:32 -07:00
2021-12-14 11:32:34 +01:00
2021-12-14 11:32:34 +01:00
2019-05-30 11:26:32 -07:00
2021-12-14 11:32:34 +01:00
2019-05-30 11:26:32 -07:00
2021-12-14 11:32:34 +01:00
2019-05-30 11:26:32 -07:00
2021-12-14 11:32:34 +01:00
2021-12-14 11:32:34 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2021-12-14 11:32:34 +01:00
2020-03-11 11:58:58 +01:00
2021-06-18 10:00:03 +02:00
2019-05-30 11:26:35 -07:00
2020-05-26 11:00:49 +02:00
2019-05-30 11:26:32 -07:00
2020-06-19 09:21:21 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:29:19 -07:00
2021-12-14 11:32:33 +01:00
2021-12-14 11:32:34 +01:00
2022-01-27 10:54:02 +01:00
2019-02-21 12:00:54 +01:00
2019-02-21 12:00:54 +01:00
2019-02-21 12:00:54 +01:00
2020-07-20 12:24:41 +02:00
2019-02-21 12:00:53 +01:00
2022-01-27 10:54:33 +01:00
2019-05-30 11:26:32 -07:00
2020-09-07 16:03:51 +02:00
2019-05-30 11:26:32 -07:00
2020-06-19 14:17:22 +02:00
2020-06-19 14:17:22 +02:00
2019-05-30 11:26:32 -07:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2020-01-27 15:49:30 +01:00
2021-12-14 11:32:34 +01:00
2020-09-30 22:44:26 +02:00
2022-01-27 10:53:40 +01:00
2021-12-14 11:32:34 +01:00
2022-01-27 10:53:40 +01:00
2021-12-01 09:19:00 +01:00
2019-11-06 21:37:29 +01:00