Thread (2 messages) 2 messages, 2 authors, 2009-05-06

Re: [PATCH] HID: Fix dropped device-specific quirks

From: Jiri Kosina <hidden>
Date: 2009-05-06 14:35:21

On Mon, 4 May 2009, Zoltan Karcagi wrote:
Device-specific quirks are set up correctly in their respective 
vendor-specific driver, then get overwritten in usbhid_parse(). Found on 
a Microsoft Wireless Optical Desktop 3.0 [045e:009d].
Good catch, thanks. Fortunately this affects only a few devices out there, 
for which specialized drivers set hdrv->quirks specifically (mostly NOGET 
quirk only).
quoted hunk ↗ jump to hunk
Signed-off-by: Zoltan Karcagi <redacted>

diff -r -U 5 linux-2.6.30-rc4/drivers/hid/usbhid/hid-core.c
linux-2.6.30-rc4-fixed/drivers/hid/usbhid/hid-core.c
--- linux-2.6.30-rc4/drivers/hid/usbhid/hid-core.c    2009-05-01
12:06:18.000000000 +0200
+++ linux-2.6.30-rc4-fixed/drivers/hid/usbhid/hid-core.c    2009-05-03
14:43:47.000000000 +0200
@@ -896,11 +896,11 @@
if (ret) {
    dbg_hid("parsing report descriptor failed\n");
    goto err;
}

-    hid->quirks = quirks;
+    hid->quirks |= quirks;

return 0;
err:
return ret;
}
The patch has been whitespace damaged, please fix this for your further 
submissions.

I have fixed it manually and applied.

Thanks,

-- 
Jiri Kosina
SUSE Labs
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help