public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Using physical extents instead of logical ones for NEC USB HID gamepads
       [not found]   ` <87ptgolq69.fsf@bayu.ireton.fremlin.de>
@ 2004-02-27 11:49     ` John Fremlin
  2004-03-04  8:21       ` Vojtech Pavlik
  0 siblings, 1 reply; 2+ messages in thread
From: John Fremlin @ 2004-02-27 11:49 UTC (permalink / raw)
  To: Ben Collins; +Cc: Vojtech Pavlik, linux-kernel, trivial

[-- Attachment #1: Type: text/plain, Size: 259 bytes --]

This patch for 2.4.22 (which applied cleanly to 2.4.25-pre) adds the
ID 073e:0301 NEC, Inc. Game Pad to the list of quirky USB joypads which
mix up logical and physical extents.

Please apply as the joypad obviously does not work without it. I've
tested it.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: linux-2.4.22-nec-usb-badpad.patch --]
[-- Type: text/x-patch, Size: 821 bytes --]

--- drivers/usb/hid-core.c.~1~	2003-09-03 10:27:13.000000000 +0000
+++ drivers/usb/hid-core.c	2003-10-23 00:57:04.000000000 +0000
@@ -1182,7 +1182,10 @@ void hid_init_reports(struct hid_device 
 #define USB_VENDOR_ID_MGE		0x0463
 #define USB_DEVICE_ID_MGE_UPS		0xffff
 #define USB_DEVICE_ID_MGE_UPS1		0x0001
- 
+
+#define USB_VENDOR_ID_NEC		0x073e
+#define USB_DEVICE_ID_NEC_USB_GAME_PAD	0x0301
+
 struct hid_blacklist {
 	__u16 idVendor;
 	__u16 idProduct;
@@ -1237,6 +1240,7 @@ struct hid_blacklist {
 	{ USB_VENDOR_ID_ESSENTIAL_REALITY, USB_DEVICE_ID_ESSENTIAL_REALITY_P5, HID_QUIRK_IGNORE },
 	{ USB_VENDOR_ID_MGE, USB_DEVICE_ID_MGE_UPS, HID_QUIRK_HIDDEV },
 	{ USB_VENDOR_ID_MGE, USB_DEVICE_ID_MGE_UPS1, HID_QUIRK_HIDDEV },
+	{ USB_VENDOR_ID_NEC, USB_DEVICE_ID_NEC_USB_GAME_PAD, HID_QUIRK_BADPAD },
 	{ 0, 0 }
 };
 

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

* Re: Using physical extents instead of logical ones for NEC USB HID gamepads
  2004-02-27 11:49     ` Using physical extents instead of logical ones for NEC USB HID gamepads John Fremlin
@ 2004-03-04  8:21       ` Vojtech Pavlik
  0 siblings, 0 replies; 2+ messages in thread
From: Vojtech Pavlik @ 2004-03-04  8:21 UTC (permalink / raw)
  To: John Fremlin; +Cc: Ben Collins, linux-kernel, trivial

On Fri, Feb 27, 2004 at 11:49:30AM +0000, John Fremlin wrote:

> This patch for 2.4.22 (which applied cleanly to 2.4.25-pre) adds the
> ID 073e:0301 NEC, Inc. Game Pad to the list of quirky USB joypads which
> mix up logical and physical extents.
> 
> Please apply as the joypad obviously does not work without it. I've
> tested it.

Applied to 2.6, for 2.4 please send it to Greg KH, and tell him I agree
with the patch.

-- 
Vojtech Pavlik
SuSE Labs, SuSE CR

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

end of thread, other threads:[~2004-03-04  8:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <86y8vcygar.fsf@notus.ireton.fremlin.de>
     [not found] ` <20031023001850.GB9808@phunnypharm.org>
     [not found]   ` <87ptgolq69.fsf@bayu.ireton.fremlin.de>
2004-02-27 11:49     ` Using physical extents instead of logical ones for NEC USB HID gamepads John Fremlin
2004-03-04  8:21       ` Vojtech Pavlik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox