usb: gadget: acm_ms: need to set max_speed
authorSteve Bennett <steveb@workware.net.au>
Fri, 22 Jun 2012 04:16:19 +0000 (14:16 +1000)
committerFelipe Balbi <balbi@ti.com>
Fri, 22 Jun 2012 10:10:10 +0000 (13:10 +0300)
Failing to set max_speed prevents g_acm_ms working with many drivers which
check for driver->max_speed < USB_SPEED_FULL, including pxa25x_udc

Signed-off-by: Steve Bennett <steveb@workware.net.au>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/acm_ms.c

index fdb7aec3bd0c9685262db2a303444ef69a62222c..75b8a691fd0036154897ab530074027099b17bc8 100644 (file)
@@ -235,6 +235,7 @@ static int __exit acm_ms_unbind(struct usb_composite_dev *cdev)
 static struct usb_composite_driver acm_ms_driver = {
        .name           = "g_acm_ms",
        .dev            = &device_desc,
+       .max_speed      = USB_SPEED_SUPER,
        .strings        = dev_strings,
        .unbind         = __exit_p(acm_ms_unbind),
 };