android_kernel_samsung_msm8976/drivers/hid/usbhid
Pekka Sarnila f345c37c37 HID: fixup fullspeed interval on highspeed Afatech DVB-T IR kbd
Many vendors highspeed devices give erroneously fullspeed interval value in
endpoint descriptor for interrupt endpoints. This quirk fixes up that by
recalculating the right value for highspeed device.

At the time of hid configuration this quirk calculates which highspeed interval
value gives same interval delay as, or next smaller then, what it would be if
the original value would be interpreted as fullspeed value. In subsequent urbs
that new value is used instead.

Forming the 'hid->name' in usb_hid_config() was moved up to accommodate more
descriptive printk reporting the fixup.

In this patch the quirk is set for one such device: Afatech DVB-T 2 infrared
HID-keyboard. It reports value 16 which means 4,069s in highspeed while
obviously 16ms was intended. In this case quirk calculates new value to be 8
which gives when interpreted as highspeed value 16ms as wanted. The behavior of
the device was verified to be what expected both before and after the patch.

Signed-off-by: Pekka Sarnila <sarnila@adit.fi>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2008-04-22 11:34:56 +02:00
..
hid-core.c HID: fixup fullspeed interval on highspeed Afatech DVB-T IR kbd 2008-04-22 11:34:56 +02:00
hid-ff.c changed email 2007-10-20 00:47:32 +02:00
hid-lgff.c
hid-pidff.c HID: fix autocentering of PID devices 2007-07-09 14:13:35 +02:00
hid-plff.c HID: use hid-plff driver for GreenAsia 0e8f:0003 devices 2007-10-14 13:40:01 +02:00
hid-quirks.c HID: fixup fullspeed interval on highspeed Afatech DVB-T IR kbd 2008-04-22 11:34:56 +02:00
hid-tmff.c HID: fix a potential bug in pointer casting 2008-01-28 14:51:19 +01:00
hid-zpff.c
hiddev.c HID: fix build failure in hiddev_ioctl with gcc 3.2 2008-04-22 11:34:56 +02:00
Kconfig HID: Add support for Apple aluminum USB keyboards. 2008-01-28 14:51:19 +01:00
Makefile
usbhid.h
usbkbd.c HID: fix compilation of hidbp drivers without usbhid 2008-01-28 14:51:22 +01:00
usbmouse.c HID: fix compilation of hidbp drivers without usbhid 2008-01-28 14:51:22 +01:00