Bugzilla – Attachment 57186 Details for
Bug 106050
Lacking support for Cherry CyMotion Master Linux
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
Patch for current alpha kernel 2.6.14-3
usb_hid_cherry_cymotion.diff (text/x-diff), 2.01 KB, created by
Forgotten User v5inq2MBSE
on 2005-11-13 16:59:09 UTC
(
hide
)
Description:
Patch for current alpha kernel 2.6.14-3
Filename:
MIME Type:
Creator:
Forgotten User v5inq2MBSE
Created:
2005-11-13 16:59:09 UTC
Size:
2.01 KB
patch
obsolete
>--- linux-2.6.14.orig/drivers/usb/input/hid-input.c 2005-11-13 11:10:39.000000000 +0100 >+++ linux-2.6.14/drivers/usb/input/hid-input.c 2005-11-13 11:15:37.000000000 +0100 >@@ -288,11 +288,16 @@ > case 0x226: map_key_clear(KEY_STOP); break; > case 0x227: map_key_clear(KEY_REFRESH); break; > case 0x22a: map_key_clear(KEY_BOOKMARKS); break; >+ case 0x233: map_key_clear(KEY_SCROLLUP); break; >+ case 0x234: map_key_clear(KEY_SCROLLDOWN); break; > case 0x238: map_rel(REL_HWHEEL); break; > case 0x279: map_key_clear(KEY_REDO); break; > case 0x289: map_key_clear(KEY_REPLY); break; > case 0x28b: map_key_clear(KEY_FORWARDMAIL); break; > case 0x28c: map_key_clear(KEY_SEND); break; >+ case 0x301: map_key_clear(KEY_PROG1); break; >+ case 0x302: map_key_clear(KEY_PROG2); break; >+ case 0x303: map_key_clear(KEY_PROG3); break; > default: goto ignore; > } > break; >--- linux-2.6.14.orig/drivers/usb/input/hid-core.c 2005-11-13 11:11:14.000000000 +0100 >+++ linux-2.6.14/drivers/usb/input/hid-core.c 2005-11-13 11:17:27.000000000 +0100 >@@ -1247,10 +1247,14 @@ > ifnum, NULL, 0, USB_CTRL_SET_TIMEOUT); > } > >+#define USB_VENDOR_ID_CHERRY 0x046a >+#define USB_DEVICE_ID_CHERRY_CYMOTION 0x0023 >+ > static int hid_get_class_descriptor(struct usb_device *dev, int ifnum, > unsigned char type, void *buf, int size) > { > int result, retries = 4; >+ char *p = (char*)buf; > > memset(buf,0,size); // Make sure we parse really received data > >@@ -1260,6 +1264,21 @@ > (type << 8), ifnum, buf, size, USB_CTRL_GET_TIMEOUT); > retries--; > } while (result < size && retries); >+ >+ /* >+ * wn_hack: patch wrong descriptor for this device >+ * hardware sends wrong descriptor >+ */ >+ if (dev->descriptor.idVendor == USB_VENDOR_ID_CHERRY >+ && dev->descriptor.idProduct == USB_DEVICE_ID_CHERRY_CYMOTION >+ && size > 12 >+ && p[11] == 0x3c >+ && p[12] == 0x02) { >+ printk(KERN_DEBUG __FILE__ " : modifying descriptor for Cherry CyMotion keyboard \n"); >+ p[11] = p[16] = 0xff; >+ p[12] = p[17] = 0x03; >+ } >+ > return result; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 106050
:
46790
|
46791
| 57186