usb: gadget: android: Remove WAKEUP flag from bmAttributes
authorBenoit Goby <benoit@android.com>
Fri, 24 Sep 2010 01:34:27 +0000 (18:34 -0700)
committerColin Cross <ccross@android.com>
Tue, 14 Jun 2011 16:09:09 +0000 (09:09 -0700)
Remove USB_CONFIG_ATT_WAKEUP from bmAttributes as we don't
support remote wakeup. This fixes an issue with the USB 2.0
compliance test tool.

Change-Id: Ic15e44710069f3f05ace6a82bbfa2b85a3649027
Signed-off-by: Benoit Goby <benoit@android.com>
drivers/usb/gadget/android.c

index 8f8b6376681c70f572054b2d8955cd3c3579da7c..ed4f5739cb9c5c05a793af860497d84e6b118a44 100644 (file)
@@ -249,9 +249,6 @@ static int android_bind(struct usb_composite_dev *cdev)
        strings_dev[STRING_SERIAL_IDX].id = id;
        device_desc.iSerialNumber = id;
 
-       if (gadget->ops->wakeup)
-               android_config_driver.bmAttributes |= USB_CONFIG_ATT_WAKEUP;
-
        /* register our configuration */
        ret = usb_add_config(cdev, &android_config_driver);
        if (ret) {