summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFelix Hädicke <felixhaedicke@web.de>2016-06-22 01:12:09 +0200
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-08-25 11:13:17 +0200
commit4368c28ae7acb0744968e58c81be561b44aacd57 (patch)
tree623e3ed3bc63a4f8c962286de8f0fec3864ec364 /include
parentusb: gadget: composite: let USB functions process ctrl reqs in cfg0 (diff)
downloadlinux-4368c28ae7acb0744968e58c81be561b44aacd57.tar.xz
linux-4368c28ae7acb0744968e58c81be561b44aacd57.zip
usb: gadget: f_fs: handle control requests in config 0
Introduces a new FunctionFS descriptor flag named FUNCTIONFS_CONFIG0_SETUP. When this flag is enabled, FunctionFS userspace drivers can process non-standard control requests in configuration 0. Signed-off-by: Felix Hädicke <felixhaedicke@web.de> 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 93da4ca82dc7..acc63697a0cc 100644
--- a/include/uapi/linux/usb/functionfs.h
+++ b/include/uapi/linux/usb/functionfs.h
@@ -22,6 +22,7 @@ enum functionfs_flags {
FUNCTIONFS_VIRTUAL_ADDR = 16,
FUNCTIONFS_EVENTFD = 32,
FUNCTIONFS_ALL_CTRL_RECIP = 64,
+ FUNCTIONFS_CONFIG0_SETUP = 128,
};
/* Descriptor of an non-audio endpoint */