mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jiri Kosina <jikos@kernel.org>
To: Oscar Campos <oscar.campos@member.fsf.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] HID: corsair: Add driver Scimitar Pro RGB gaming mouse 1b1c:1b3e
Date: Mon, 6 Mar 2017 13:57:10 +0100 (CET)	[thread overview]
Message-ID: <alpine.LSU.2.20.1703061355390.31814@cbobk.fhfr.pm> (raw)
In-Reply-To: <20170210182324.GA21762@ManjaroStation>

On Fri, 10 Feb 2017, Oscar Campos wrote:

> This mouse sold by Corsair as Scimitar PRO RGB defines two consecutive 
> Logical Minimum items in its Application (Consumer.0001) report making 
> it non parseable. This driver fixes the report descriptor overriding 
> byte 77 in rdesc from 0x16 (Logical Minimum with 16 bits value) to 0x26 
> (Logical Maximum with 16 bits value).
> 
> Signed-off-by: Oscar Campos <oscar.campos@member.fsf.org>
> ---
>  drivers/hid/Kconfig             | 10 ++++++
>  drivers/hid/Makefile            |  1 +
>  drivers/hid/hid-corsair-mouse.c | 76 +++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 87 insertions(+)
>  create mode 100644 drivers/hid/hid-corsair-mouse.c
> 
> diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig
> index 4070b7386e9d..1ad179b70b15 100644
> --- a/drivers/hid/Kconfig
> +++ b/drivers/hid/Kconfig
> @@ -191,6 +191,16 @@ config HID_CORSAIR
>  	Supported devices:
>  	- Vengeance K90
> 
> +config HID_CORSAIR_MOUSE:

The colon after the symbol name shouldn't be there.

[ ... snip ... ]

> +static const struct hid_device_id corsair_mouse_devices[] = {
> +	{ HID_USB_DEVICE(USB_VENDOR_ID_CORSAIR,
> +			USB_DEVICE_ID_CORSAIR_SCIMITAR_PRO_RGB) },
> +	{ }
> +};
> +MODULE_DEVICE_TABLE(hid, corsair_mouse_devices);

You need to add this vendor/product id also into hid_have_special_driver[] 
array, otherwise it's not guaranteed that your driver will bind to it (as 
the generic one might overrride).

Thanks,

-- 
Jiri Kosina
SUSE Labs

  reply	other threads:[~2017-03-06 12:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cover.1486737756.git.oscar.campos@member.fsf.org>
2017-02-10 18:23 ` [PATCH 1/2] HID: corsair: support for K65-K70 Rapidfire and Scimitar Pro RGB Oscar Campos
2017-02-10 18:23 ` [PATCH 2/2] HID: corsair: Add driver Scimitar Pro RGB gaming mouse 1b1c:1b3e Oscar Campos
2017-03-06 12:57   ` Jiri Kosina [this message]
2017-03-06 21:02     ` [PATCH v2 2/2] HID: corsair: Add driver Scimitar Pro RGB gaming mouse 1b1c:1b3e support to hid-corsair Oscar Campos

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=alpine.LSU.2.20.1703061355390.31814@cbobk.fhfr.pm \
    --to=jikos@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oscar.campos@member.fsf.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

all inboxes | Powered by JetHome®