lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <alpine.LNX.2.00.1312150028340.28760@pobox.suse.cz>
Date:	Sun, 15 Dec 2013 00:40:29 +0100 (CET)
From:	Jiri Kosina <jkosina@...e.cz>
To:	Kharlamov Alexey <derlafff@...dex.ru>
cc:	linux-input@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Add new USB_DEVICE_ID to holtek workaround module
 (hid-holtek-mouse.c)


[ usual CCs added ]

On Sun, 15 Dec 2013, Kharlamov Alexey wrote:

> New USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A070 constant was added to existing 
> workaround module, so RITMIX ROM-316 mouse can now work.
> 
> Signed-off-by: Alexey Kharlamov <derlafff@...ru>
> 
> ---
> 
> Tested and patched on linux-3.13-rc3

Hi Alexey,

I am wondering how this patch was tested, please? See comments below.

> diff -uprN a/drivers/hid/hid-holtek-mouse.c b/drivers/hid/hid-holtek-mouse.c
> --- a/drivers/hid/hid-holtek-mouse.c	2013-12-06 21:34:04.000000000 +0400
> +++ b/drivers/hid/hid-holtek-mouse.c	2013-12-15 01:24:30.277447386 +0400
> @@ -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)?

>  
> @@ -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.h b/drivers/hid/hid-ids.h
> --- a/drivers/hid/hid-ids.h	2013-12-06 21:34:04.000000000 +0400
> +++ b/drivers/hid/hid-ids.h	2013-12-15 01:22:37.661390627 +0400
> @@ -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,

-- 
Jiri Kosina
SUSE Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ