aboutsummaryrefslogtreecommitdiff
path: root/common/usb.c
diff options
context:
space:
mode:
authorVivek Gautam <gautam.vivek@samsung.com>2013-04-12 16:34:36 +0530
committerMarek Vasut <marex@denx.de>2013-05-05 23:54:22 +0200
commit99c3491b78cc2a5e58f77da32c913f11fd16103f (patch)
treecd5dc5ea9d03e40b18ca8437d96ebfb561bf90c5 /common/usb.c
parent020bbcb76b5be0d5406d2ae7c26dbdb013ead812 (diff)
downloadu-boot-99c3491b78cc2a5e58f77da32c913f11fd16103f.zip
u-boot-99c3491b78cc2a5e58f77da32c913f11fd16103f.tar.gz
u-boot-99c3491b78cc2a5e58f77da32c913f11fd16103f.tar.bz2
usb: Update device class in usb device's descriptor
Fetch the device class into usb device's dwcriptors, so that the host controller's driver can use this info to differentiate between HUB and DEVICE. Signed-off-by: Amar <amarendra.xt@samsung.com>
Diffstat (limited to 'common/usb.c')
-rw-r--r--common/usb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/usb.c b/common/usb.c
index 8407974..3a96a34 100644
--- a/common/usb.c
+++ b/common/usb.c
@@ -879,6 +879,11 @@ int usb_new_device(struct usb_device *dev)
}
dev->descriptor.bMaxPacketSize0 = desc->bMaxPacketSize0;
+ /*
+ * Fetch the device class, driver can use this info
+ * to differentiate between HUB and DEVICE.
+ */
+ dev->descriptor.bDeviceClass = desc->bDeviceClass;
/* find the port number we're at */
if (parent) {