lkml.org 
[lkml]   [2011]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3] usb: add new usb gadget for ACM and mass storage
Hi,

On Mon, Oct 10, 2011 at 10:33:01AM +0200, Klaus Schwarzkopf wrote:
> >>+static struct usb_device_descriptor device_desc = {
> >>+ .bLength = sizeof device_desc,
> >>+ .bDescriptorType = USB_DT_DEVICE,
> >>+
> >>+ .bcdUSB = cpu_to_le16(0x0200),
> >>+
> >>+ .bDeviceClass = USB_CLASS_COMM,
> >>+ .bDeviceSubClass = 0,
> >>+ .bDeviceProtocol = 0,
>
> Should bDeviceClass, bDeviceSubClass, and bDeviceProtocol have the
> same value like in the file multi.c?
>
> .bDeviceClass = USB_CLASS_MISC /* 0xEF */,
> .bDeviceSubClass = 2,
> .bDeviceProtocol = 1,

maybe, you gotta check CDC and MSC specs to find out.

--
balbi
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2011-10-10 10:53    [W:0.408 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site