summaryrefslogtreecommitdiffstats
path: root/drivers/hid
diff options
context:
space:
mode:
authorAndreas Bergmeier <abergmeier@gmx.net>2022-11-11 20:45:26 +0100
committerJiri Kosina <jkosina@suse.cz>2022-11-21 22:34:16 +0100
commit8b7e58409b1813c58eea542d9f3b8db35b4ac1f7 (patch)
tree570de430e9c9c9752fecc5b6a12e6cbd222563cd /drivers/hid
parentMerge tag 'for-linus-2022111101' of git://git.kernel.org/pub/scm/linux/kernel... (diff)
downloadlinux-8b7e58409b1813c58eea542d9f3b8db35b4ac1f7.tar.xz
linux-8b7e58409b1813c58eea542d9f3b8db35b4ac1f7.zip
HID: logitech HID++: Send SwID in GetProtocolVersion
According to docs a SwID should be sent for GetProtocolVersion. > 0x10.DeviceIndex.0x00.0x1n where n is SwID. Signed-off-by: Andreas Bergmeier <abergmeier@gmx.net> Reviewed-by: Bastien Nocera <hadess@hadess.net> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/hid-logitech-hidpp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-logitech-hidpp.c b/drivers/hid/hid-logitech-hidpp.c
index 71a9c258a20b..9afbc68bf063 100644
--- a/drivers/hid/hid-logitech-hidpp.c
+++ b/drivers/hid/hid-logitech-hidpp.c
@@ -895,7 +895,7 @@ static int hidpp_root_get_protocol_version(struct hidpp_device *hidpp)
ret = hidpp_send_rap_command_sync(hidpp,
REPORT_ID_HIDPP_SHORT,
HIDPP_PAGE_ROOT_IDX,
- CMD_ROOT_GET_PROTOCOL_VERSION,
+ CMD_ROOT_GET_PROTOCOL_VERSION | LINUX_KERNEL_SW_ID,
ping_data, sizeof(ping_data), &response);
if (ret == HIDPP_ERROR_INVALID_SUBID) {