aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/hub.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2014-08-25 11:51:26 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-24 00:15:39 -0400
commit2a159389bf5d962359349a76827b2f683276a1c7 (patch)
tree55877b54e9fe9c7750833078d1afb8eb6977b8b6 /drivers/usb/core/hub.c
parentbf17eba7ae1e813b0ad67cb1078dcbd7083b906e (diff)
USB: core: add device-qualifier quirk
Add new quirk for devices that cannot handle requests for the device_qualifier descriptor. A USB-2.0 compliant device must respond to requests for the device_qualifier descriptor (even if it's with a request error), but at least one device is known to misbehave after such a request. Suggested-by: Bjørn Mork <bjorn@mork.no> Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core/hub.c')
-rw-r--r--drivers/usb/core/hub.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index d481c99a20d7..c01b72467524 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -4538,6 +4538,9 @@ check_highspeed (struct usb_hub *hub, struct usb_device *udev, int port1)
4538 struct usb_qualifier_descriptor *qual; 4538 struct usb_qualifier_descriptor *qual;
4539 int status; 4539 int status;
4540 4540
4541 if (udev->quirks & USB_QUIRK_DEVICE_QUALIFIER)
4542 return;
4543
4541 qual = kmalloc (sizeof *qual, GFP_KERNEL); 4544 qual = kmalloc (sizeof *qual, GFP_KERNEL);
4542 if (qual == NULL) 4545 if (qual == NULL)
4543 return; 4546 return;