Re: [PATCH][Bug 26922]USB: yurex: recognize GeneralKeys wirelesspresenter as generic HID (Re: New: 2.6.37 breaks USB wireless presenter HID device)

From: Tomoki Sekiyama
Date: Thu Mar 03 2011 - 11:48:10 EST


2011/1/21 Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>:
> On Fri, 21 Jan 2011 07:28:49 +0900
> You hit the jackpot. ÂThe patch was wordwrapped, space-stuffed and
> tab-replaced!
>
> Here's my attempt to reconstruct it:

Sorry for broken patch, and thanks for your repair.
The patch was confirmed to successfully fix the regression in recognition
of Wireless Presenter by the original bug reporter.

https://bugzilla.kernel.org/show_bug.cgi?id=26922

> From: Tomoki Sekiyama <tomoki.sekiyama@xxxxxxxxx>
>
> Unfortunately, the device seems to have the same Vendor ID and Product ID
> as YUREX leg-shakes sensors, and the commit 6bc235a2e2 ("USB: add driver
> for Meywa-Denki & Kayac YUREX") added the ID to hid_ignore_list.
>
> I believe that we can distinguish YUREX and the Wireless Presenter by
> device type. ÂThe patch below makes the driver ignore only YUREX
> (bInterfaceProtocol==0), and recognize Wireless Presenter
> (bInterfaceProtocol is keyboard or mouse) as generic HID. Â(I don't have
> the Wireless Presenter, so not yet ested.)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/