]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: f_fs: Document eventfd effect on descriptor format.
authorVincent Pelletier <plr.vincent@gmail.com>
Thu, 15 Dec 2016 12:47:41 +0000 (12:47 +0000)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 2 Jan 2017 08:55:28 +0000 (10:55 +0200)
commitdb7b5608c3d6deb28e3aea6ba581928814b08c35
tree1d72daa782156faeae0244b0611c745b3d546929
parent66190b9c4257220bcd7145eeceeb01db2bbad8fa
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>
drivers/usb/gadget/function/f_fs.c
include/uapi/linux/usb/functionfs.h