From: Vivek Gautam Date: Fri, 12 Apr 2013 11:04:36 +0000 (+0530) Subject: usb: Update device class in usb device's descriptor X-Git-Tag: v2013.07-rc1~1^2~78 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=99c3491b78cc2a5e58f77da32c913f11fd16103f;p=platform%2Fkernel%2Fu-boot.git 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 --- 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) {