OSDN Git Service

usb: gadget: f_fs: OS descriptors support
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Wed, 9 Jul 2014 10:20:08 +0000 (12:20 +0200)
committerFelipe Balbi <balbi@ti.com>
Thu, 10 Jul 2014 13:36:52 +0000 (08:36 -0500)
commitf0175ab51993d2dc2728e7b22a16ffb0c8f4cfa0
tree03931c91c52bcccf6ea95ffb382c45a72839c281
parent7ea4f088c810dab3ba3ab4c7a3879238f790e1fd
usb: gadget: f_fs: OS descriptors support

Add support for OS descriptors. The new format of descriptors is used,
because the "flags" field is required for extensions. os_count gives
the number of OSDesc[] elements.
The format of descriptors is given in include/uapi/linux/usb/functionfs.h.

For extended properties descriptor the usb_ext_prop_desc structure covers
only a part of a descriptor, because the wPropertyNameLength is unknown
up front.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/f_fs.c
drivers/usb/gadget/u_fs.h
include/uapi/linux/usb/functionfs.h