USB: set bcdDevice default value 3.0
authorwlf <wulf@rock-chips.com>
Tue, 25 Feb 2014 09:37:56 +0000 (17:37 +0800)
committerwlf <wulf@rock-chips.com>
Tue, 25 Feb 2014 09:37:56 +0000 (17:37 +0800)
drivers/usb/gadget/android.c

index 6de842d6af97455320a6218db32ce090e2a9034d..6712beb388c6f88c8b216cbc253aca718ef2d728 100644 (file)
@@ -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;