From: wlf Date: Tue, 25 Feb 2014 09:37:56 +0000 (+0800) Subject: USB: set bcdDevice default value 3.0 X-Git-Tag: firefly_0821_release~6272 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=12431148518f87db19aebf057a995a353d2bcd0e;p=firefly-linux-kernel-4.4.55.git USB: set bcdDevice default value 3.0 --- diff --git a/drivers/usb/gadget/android.c b/drivers/usb/gadget/android.c index 6de842d6af97..6712beb388c6 100644 --- a/drivers/usb/gadget/android.c +++ b/drivers/usb/gadget/android.c @@ -1347,6 +1347,7 @@ static int android_bind(struct usb_composite_dev *cdev) return id; strings_dev[STRING_SERIAL_IDX].id = id; device_desc.iSerialNumber = id; + device_desc.bcdDevice = cpu_to_le16(get_default_bcdDevice()); usb_gadget_set_selfpowered(gadget); dev->cdev = cdev;