All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] HID: Corsair Scimitar Pro RGB gaming mouse driver and support for other Corsair devices
@ 2017-02-10 18:22 Oscar Campos
  2017-03-06 12:55 ` Jiri Kosina
  0 siblings, 1 reply; 4+ messages in thread
From: Oscar Campos @ 2017-02-10 18:22 UTC (permalink / raw)
  To: jikos; +Cc: linux-kernel


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] HID: Corsair Scimitar Pro RGB gaming mouse driver and support for other Corsair devices
  2017-02-10 18:22 [PATCH 0/2] HID: Corsair Scimitar Pro RGB gaming mouse driver and support for other Corsair devices Oscar Campos
@ 2017-03-06 12:55 ` Jiri Kosina
  2017-03-06 21:09   ` Oscar Campos
  0 siblings, 1 reply; 4+ messages in thread
From: Jiri Kosina @ 2017-03-06 12:55 UTC (permalink / raw)
  To: Oscar Campos; +Cc: linux-kernel

On Fri, 10 Feb 2017, Oscar Campos wrote:

> 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.
[ ... snip ... ]
> 
> 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.

Hi Oscar,

thanks a lot for the patch.

Keeping the support in hid-corsair would be prefered. I think the only 
driver where we have the major kbd/mouse split is Holtek, which if I 
remember correctly was my fault not having catched this during review; it 
should probably eventually be unified.

Otherwsie, we don't really distinguish the device type (the HID land is 
much wider than mice and keyboards anyway), but in most cases by the 
vendor.

Could you please resubmit the patch so that it's actually adding changes 
to hid-corsair? Thanks!

-- 
Jiri Kosina
SUSE Labs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] HID: Corsair Scimitar Pro RGB gaming mouse driver and support for other Corsair devices
  2017-03-06 12:55 ` Jiri Kosina
@ 2017-03-06 21:09   ` Oscar Campos
  2017-03-21 13:46     ` Jiri Kosina
  0 siblings, 1 reply; 4+ messages in thread
From: Oscar Campos @ 2017-03-06 21:09 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: linux-kernel

On Mon, Mar 06, 2017 at 01:55:21PM +0100, Jiri Kosina wrote:
> On Fri, 10 Feb 2017, Oscar Campos wrote:
>
> > 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.
> [ ... snip ... ]
> >
> > 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.
>
> Hi Oscar,
>
> thanks a lot for the patch.
>
> Keeping the support in hid-corsair would be prefered. I think the only
> driver where we have the major kbd/mouse split is Holtek, which if I
> remember correctly was my fault not having catched this during review; it
> should probably eventually be unified.
>
> Otherwsie, we don't really distinguish the device type (the HID land is
> much wider than mice and keyboards anyway), but in most cases by the
> vendor.
>
> Could you please resubmit the patch so that it's actually adding changes
> to hid-corsair? Thanks!

I did send a [PATCH v2 2/2] that adds the changes to hid-corsair and
rollback any uneeded changes into the Kconfig and Makefile files. I also
added the vendor/product_id into the hid_have_special_driver[] array as
suggested.

>
> --
> Jiri Kosina
> SUSE Labs
>

Regards

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] HID: Corsair Scimitar Pro RGB gaming mouse driver and support for other Corsair devices
  2017-03-06 21:09   ` Oscar Campos
@ 2017-03-21 13:46     ` Jiri Kosina
  0 siblings, 0 replies; 4+ messages in thread
From: Jiri Kosina @ 2017-03-21 13:46 UTC (permalink / raw)
  To: Oscar Campos; +Cc: linux-kernel

On Mon, 6 Mar 2017, Oscar Campos wrote:

> I did send a [PATCH v2 2/2] that adds the changes to hid-corsair and 
> rollback any uneeded changes into the Kconfig and Makefile files. I also 
> added the vendor/product_id into the hid_have_special_driver[] array as 
> suggested.

Applied to for-4.11/upstream-fixes. Thanks,

-- 
Jiri Kosina
SUSE Labs

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-03-21 15:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-10 18:22 [PATCH 0/2] HID: Corsair Scimitar Pro RGB gaming mouse driver and support for other Corsair devices Oscar Campos
2017-03-06 12:55 ` Jiri Kosina
2017-03-06 21:09   ` Oscar Campos
2017-03-21 13:46     ` Jiri Kosina

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.