From: Benoit Goby Date: Fri, 24 Sep 2010 01:34:27 +0000 (-0700) Subject: usb: gadget: android: Remove WAKEUP flag from bmAttributes X-Git-Tag: firefly_0821_release~7613^2~798 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ffab952c8608df0fede4727bf35d84fb32a2fdef;p=firefly-linux-kernel-4.4.55.git usb: gadget: android: Remove WAKEUP flag from bmAttributes 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 --- diff --git a/drivers/usb/gadget/android.c b/drivers/usb/gadget/android.c index 8f8b6376681c..ed4f5739cb9c 100644 --- a/drivers/usb/gadget/android.c +++ b/drivers/usb/gadget/android.c @@ -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) {