All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sshtylyov@mvista.com>
To: Forest Bond <forest@alittletooquiet.net>
Cc: Jiri Kosina <jkosina@suse.cz>,
	Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Daniel Ritz <daniel.ritz@gmx.ch>,
	Alan Stern <stern@rowland.harvard.edu>,
	linux-input@vger.kernel.org, linux-usb@vger.kernel.org
Subject: Re: [PATCH] HID: Ignore D-WAV/eGalax devices handled by usbtouchscreen
Date: Wed, 07 Nov 2012 15:29:16 +0400	[thread overview]
Message-ID: <509A460C.8000401@mvista.com> (raw)
In-Reply-To: <20121106184122.GT12501@alittletooquiet.net>

Hello.

On 06-11-2012 22:41, Forest Bond wrote:

> From: Forest Bond <forest.bond@rapidrollout.com>

> Previously, both usbhid and usbtouchscreen would bind to D-WAV devices
> with class HID and protocol None, so they would be claimed by whichever
> driver was loaded first.  Some of these devices do in fact work with
> usbhid, but not all of them do.  OTOH they all work with usbtouchscreen
> as of commit 037a833ed05a86d01ea27a2c32043b86c549be1b ("Input:
> usbtouchscreen - initialize eGalax devices").  So we ignore them in
> usbhid to prevent getting in the way of usbtouchscreen and claiming an
> interface that we may not be able to do anything useful with.

> Signed-off-by: Forest Bond <forest.bond@rapidrollout.com>
> ---
>   drivers/hid/hid-core.c |   11 ++++++++++-
>   drivers/hid/hid-ids.h  |    1 +
>   2 files changed, 11 insertions(+), 1 deletions(-)

> diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
> index f4109fd..f2d614e 100644
> --- a/drivers/hid/hid-core.c
> +++ b/drivers/hid/hid-core.c
> @@ -2188,7 +2188,16 @@ static bool hid_ignore(struct hid_device *hdev)
>   		if (hdev->product == USB_DEVICE_ID_JESS_YUREX &&
>   				hdev->type == HID_TYPE_USBNONE)
>   			return true;
> -	break;
> +		break;
> +	case USB_VENDOR_ID_DWAV:
> +		/* These are handled by usbtouchscreen. hdev->type is probably
> +		 * HID_TYPE_USBNONE, but we say !HID_TYPE_USBMOUSE to match
> +		 * usbtouchscreen. */

    Note that the preferred style of multi-line comments is this, according to 
CodingStyle:

/*
  * bla
  * bla
  */

WBR, Sergei


  parent reply	other threads:[~2012-11-07 11:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-06 18:41 [PATCH] HID: Ignore D-WAV/eGalax devices handled by usbtouchscreen Forest Bond
2012-11-07 10:52 ` Jiri Kosina
2012-11-07 11:29 ` Sergei Shtylyov [this message]
2012-11-07 13:57   ` Forest Bond
2012-11-07 14:02     ` Jiri Kosina
     [not found]       ` <alpine.LNX.2.00.1211071502190.27271-ztGlSCb7Y1iN3ZZ/Hiejyg@public.gmane.org>
2012-11-07 14:09         ` Forest Bond

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=509A460C.8000401@mvista.com \
    --to=sshtylyov@mvista.com \
    --cc=daniel.ritz@gmx.ch \
    --cc=dmitry.torokhov@gmail.com \
    --cc=forest@alittletooquiet.net \
    --cc=jkosina@suse.cz \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=stern@rowland.harvard.edu \
    /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 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.