summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorVincent Pelletier <plr.vincent@gmail.com>2016-12-15 12:47:41 +0000
committerFelipe Balbi <felipe.balbi@linux.intel.com>2017-01-02 10:55:28 +0200
commit96a420d2d37cc019d0fbb95c9f0e965fa1080e1f (patch)
tree1d72daa782156faeae0244b0611c745b3d546929 /include
parent7e4da3fcf7c9fe042f2f7cb7bf23861a899b4a8f (diff)
downloadlinux-stable-96a420d2d37cc019d0fbb95c9f0e965fa1080e1f.tar.gz
linux-stable-96a420d2d37cc019d0fbb95c9f0e965fa1080e1f.tar.bz2
linux-stable-96a420d2d37cc019d0fbb95c9f0e965fa1080e1f.zip
usb: gadget: f_fs: Document eventfd effect on descriptor format.
When FUNCTIONFS_EVENTFD flag is set, __ffs_data_got_descs reads a 32bits, little-endian value right after the fixed structure header, and passes it to eventfd_ctx_fdget. Document this. Also, rephrase a comment to be affirmative about the role of string descriptor at index 0. Ref: USB 2.0 spec paragraph "9.6.7 String", and also checked to still be current in USB 3.0 spec paragraph "9.6.9 String". Signed-off-by: Vincent Pelletier <plr.vincent@gmail.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/usb/functionfs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/usb/functionfs.h b/include/uapi/linux/usb/functionfs.h
index acc63697a0cc..b2a31a55a612 100644
--- a/include/uapi/linux/usb/functionfs.h
+++ b/include/uapi/linux/usb/functionfs.h
@@ -93,6 +93,7 @@ struct usb_ext_prop_desc {
* | 0 | magic | LE32 | FUNCTIONFS_DESCRIPTORS_MAGIC_V2 |
* | 4 | length | LE32 | length of the whole data chunk |
* | 8 | flags | LE32 | combination of functionfs_flags |
+ * | | eventfd | LE32 | eventfd file descriptor |
* | | fs_count | LE32 | number of full-speed descriptors |
* | | hs_count | LE32 | number of high-speed descriptors |
* | | ss_count | LE32 | number of super-speed descriptors |