1
0
Fork 0

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>
utp
Vivek Gautam 2013-04-12 16:34:36 +05:30 committed by Marek Vasut
parent 020bbcb76b
commit 99c3491b78
1 changed files with 5 additions and 0 deletions

View File

@ -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) {