projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe8ae89
)
USB: gadget: android: Specify USB_CLASS_COMM in device descriptor if using RNDIS
author
Mike Lockwood
<lockwood@android.com>
Wed, 10 Feb 2010 20:26:58 +0000
(15:26 -0500)
committer
Colin Cross
<ccross@android.com>
Tue, 14 Jun 2011 16:08:56 +0000
(09:08 -0700)
Signed-off-by: Mike Lockwood <lockwood@android.com>
drivers/usb/gadget/android.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/android.c
b/drivers/usb/gadget/android.c
index 72a1aab66214a1a502ffe9ec9ed2e4b3529b2c4f..73fc4b465ef5ddf604db3fd5a5ed5c82ac052482 100644
(file)
--- a/
drivers/usb/gadget/android.c
+++ b/
drivers/usb/gadget/android.c
@@
-100,7
+100,14
@@
static struct usb_device_descriptor device_desc = {
.bLength = sizeof(device_desc),
.bDescriptorType = USB_DT_DEVICE,
.bcdUSB = __constant_cpu_to_le16(0x0200),
+#ifdef CONFIG_USB_ANDROID_RNDIS
+ /* we need to specify the class in the device descriptor
+ * if we are using RNDIS.
+ */
+ .bDeviceClass = USB_CLASS_COMM,
+#else
.bDeviceClass = USB_CLASS_PER_INTERFACE,
+#endif
.idVendor = __constant_cpu_to_le16(VENDOR_ID),
.idProduct = __constant_cpu_to_le16(PRODUCT_ID),
.bcdDevice = __constant_cpu_to_le16(0xffff),