Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
e4c429c4
Commit
e4c429c4
authored
Apr 01, 2020
by
Jiri Kosina
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-5.7/logitech' into for-linus
- Logitech HID++ protocol support improvement from Filipe Laíns
parents
0460ceb8
8c9d734c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
drivers/hid/hid-logitech-dj.c
drivers/hid/hid-logitech-dj.c
+9
-2
No files found.
drivers/hid/hid-logitech-dj.c
View file @
e4c429c4
...
...
@@ -16,11 +16,11 @@
#include <asm/unaligned.h>
#include "hid-ids.h"
#define DJ_MAX_PAIRED_DEVICES
6
#define DJ_MAX_PAIRED_DEVICES
7
#define DJ_MAX_NUMBER_NOTIFS 8
#define DJ_RECEIVER_INDEX 0
#define DJ_DEVICE_INDEX_MIN 1
#define DJ_DEVICE_INDEX_MAX
6
#define DJ_DEVICE_INDEX_MAX
7
#define DJREPORT_SHORT_LENGTH 15
#define DJREPORT_LONG_LENGTH 32
...
...
@@ -980,6 +980,11 @@ static void logi_hidpp_recv_queue_notif(struct hid_device *hdev,
break
;
}
/* custom receiver device (eg. powerplay) */
if
(
hidpp_report
->
device_index
==
7
)
{
workitem
.
reports_supported
|=
HIDPP
;
}
if
(
workitem
.
type
==
WORKITEM_TYPE_EMPTY
)
{
hid_warn
(
hdev
,
"unusable device of type %s (0x%02x) connected on slot %d"
,
...
...
@@ -1368,6 +1373,8 @@ static int logi_dj_ll_parse(struct hid_device *hid)
}
if
(
djdev
->
reports_supported
&
HIDPP
)
{
dbg_hid
(
"%s: sending a HID++ descriptor, reports_supported: %llx
\n
"
,
__func__
,
djdev
->
reports_supported
);
rdcat
(
rdesc
,
&
rsize
,
hidpp_descriptor
,
sizeof
(
hidpp_descriptor
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment