From: Oscar Campos <oscar.campos@member.fsf.org>
To: jikos@kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 0/2] HID: Corsair Scimitar Pro RGB gaming mouse driver and support for other Corsair devices
Date: Fri, 10 Feb 2017 18:22:37 +0000 [thread overview]
Message-ID: <20170210182234.GA18830@ManjaroStation> (raw)
Hi all,
Since I have a Corsair Scimitar PRO RGB that does not works on Linux, I
tried to find a solution doing some research but was not able to find any.
The kernel just complained about not being able to parse one of the report
descriptor items giving back an error -22, enabling the hid debug support I
could get more detailed information from the Kernel that was now reporting
`logical range invalid 0xfff 0x7f` by `hid-core.c`
Taking a look at the output of the /sys/kernel/debug/hid/DEVICE/rdesc
I noticed that one of the report items was using 0x15 and 0x16 items
consecutively for Logical Minimum and Logical Maximum, obviously the
latter one was wrong and it should be 0x26 (16 bits Logical Maximum)
instead of 0x16 (16 bits Logical Minimum).
Investigating this issue I also noticed `timeout initializing reports`
in both my box and my wifes for this and other Corsair new devices
(K65 and K70 RGB Rapidfire) so I also added new device ids and added
common quirks to fix it in drivers/hid/usbhid/hid-quirks.c
In the patchset, the first patch adds support for K65-K70 new RGB
Rapidfire devices and the second one adds a new driver `hid-corsair-mouse.c`
to fix the Scimitar Pro RGB parsing problem.
I created the new mouse driver instead of add code to the already existent
`hid-corsair.c` as it seem quite common to split mouse and keyboard driver
support.
Best Regards,
Oscar Campos
---
Oscar Campos (2):
HID: corsair: support for K65-K70 Rapidfire and Scimitar Pro RGB
HID: corsair: Add driver Scimitar Pro RGB gaming mouse 1b1c:1b3e
drivers/hid/Kconfig | 10 ++++++
drivers/hid/Makefile | 1 +
drivers/hid/hid-corsair-mouse.c | 76 +++++++++++++++++++++++++++++++++++++++++
drivers/hid/hid-ids.h | 3 ++
drivers/hid/usbhid/hid-quirks.c | 3 ++
5 files changed, 93 insertions(+)
create mode 100644 drivers/hid/hid-corsair-mouse.c
--
2.11.0
next reply other threads:[~2017-02-10 18:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-10 18:22 Oscar Campos [this message]
2017-03-06 12:55 ` [PATCH 0/2] HID: Corsair Scimitar Pro RGB gaming mouse driver and support for other Corsair devices Jiri Kosina
2017-03-06 21:09 ` Oscar Campos
2017-03-21 13:46 ` Jiri Kosina
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170210182234.GA18830@ManjaroStation \
--to=oscar.campos@member.fsf.org \
--cc=jikos@kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox