From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Thu, 28 Mar 2013 15:28:31 +0100 Subject: [U-Boot] [PATCH 3/7] usb: Update device class in usb device's descriptor In-Reply-To: <1364376543-7526-4-git-send-email-gautam.vivek@samsung.com> References: <1364376543-7526-1-git-send-email-gautam.vivek@samsung.com> <1364376543-7526-4-git-send-email-gautam.vivek@samsung.com> Message-ID: <201303281528.32150.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Vivek Gautam, > 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 Is this a full name? Otherwise this patch is OK. > --- > common/usb.c | 5 +++++ > 1 files changed, 5 insertions(+), 0 deletions(-) > > diff --git a/common/usb.c b/common/usb.c > index 40c1547..39fcedd 100644 > --- a/common/usb.c > +++ b/common/usb.c > @@ -888,6 +888,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) { > int j; Best regards, Marek Vasut