]> git.baikalelectronics.ru Git - kernel.git/commit
USB: add quirk to avoid config and interface strings
authorAlan Stern <stern@rowland.harvard.edu>
Wed, 18 Mar 2009 18:28:53 +0000 (14:28 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Mar 2009 23:20:25 +0000 (16:20 -0700)
commita9e2ede66d17cf3cff8766cb18992bdc95cf5429
treeb1824a0fcb1ba28842bcbcc8dbfae48c01f5a8d7
parentec3a5723f9b4608647ac8b9dc290288347f35042
USB: add quirk to avoid config and interface strings

Apparently the Configuration and Interface strings aren't used as
often as the Vendor, Product, and Serial strings.  In at least one
device (a Saitek Cyborg Gold 3D joystick), attempts to read the
Configuration string cause the device to stop responding to Control
requests.

This patch (as1226) adds a quirks flag, telling the kernel not to
read a device's Configuration or Interface strings, together with a
new quirk for the offending joystick.

Reported-by: Melchior FRANZ <melchior.franz@gmail.com>
Tested-by: Melchior FRANZ <melchior.franz@gmail.com>
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Cc: stable <stable@kernel.org> [2.6.28 and 2.6.29, nothing earlier]
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/message.c
drivers/usb/core/quirks.c
drivers/usb/core/sysfs.c
include/linux/usb/quirks.h