Add new USB_DEVICE_ID to holtek workaround module (hid-holtek-mouse.c)
A message that is not in the archive (sent off-list or not yet received): [email protected]
[ usual CCs added ]
Quoted 8 lines · Kharlamov Alexey
New
USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A070constant was added to existing workaround module, so RITMIX ROM-316 mouse can now work.Signed-off-by Alexey Kharlamov <[email protected]>---
Tested and patched on linux-3.13-rc3
Hi Alexey,
I am wondering how this patch was tested, please? See comments below.
drivers/hid/hid-holtek-mouse.c line 33
Quoted 10 lines
diff -uprN
a/drivers/hid/hid-holtek-mouse.cb/drivers/hid/hid-holtek-mouse.cdrivers/hid/hid-holtek-mouse.c +1
-0@@ -28,6 +28,7 @@* - USB ID 04d9:a04a, sold as Tracer Sniper TRM-503, NOVA Gaming Slider X200 * and Zalman ZM-GM1 * - USB ID 04d9:a081, sold as SHARKOON DarkGlider Gaming mouse +* - USB ID 04d9:a070, sold as RITMIX ROM-316 Gaming Mouse * - USB ID 04d9:a072, sold as LEETGION Hellion Gaming Mouse */
You are not adding a new switch case to holtek_mouse_report_fixup(), hence your patch seems to be a no-op (as the function does absolutely nothing and returns the original descriptor back)?
Quoted 14 lines
drivers/hid/hid-holtek-mouse.c +2
-0@@ -68,6 +69,8 @@ static const struct hid_device_id holtek {HID_USB_DEVICE (USB_VENDOR_ID_HOLTEK_ALT , USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A04A) }, { HID_USB_DEVICE(USB_VENDOR_ID_HOLTEK_ALT, + USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A070) }, + { HID_USB_DEVICE(USB_VENDOR_ID_HOLTEK_ALT, USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A072) }, { HID_USB_DEVICE(USB_VENDOR_ID_HOLTEK_ALT, USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A081) },diff -uprN
a/drivers/hid/hid-ids.hb/drivers/hid/hid-ids.h
drivers/hid/hid-ids.h line 460
Quoted 6 lines
drivers/hid/hid-ids.h +1
-0@@ -455,6 +455,7 @@#define USB_DEVICE_ID_HOLTEK_ALT_KEYBOARD 0xa055#define USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A04A 0xa04a#define USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A067 0xa067 +#define USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A070 0xa070#define USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A072 0xa072#define USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A081 0xa081
You also need to add the device to hid_have_special_driver[] so that the binding is guaranteed to be correct.
Could you please work in fixing up and resending the patch?
Thanks,
Signature · 2 lines
Jiri Kosina SUSE Labs