usb: gadget: f_fs: handle control requests not directed to interface or endpoint
authorFelix Hädicke <felixhaedicke@web.de>
Tue, 21 Jun 2016 23:12:07 +0000 (01:12 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 25 Aug 2016 09:13:17 +0000 (12:13 +0300)
commit54dfce6d07b0391e23d006579bba488de4f7d6aa
tree434992c766d701fea355d0493592ef4a82e563b3
parented6fe1f50f0c0fdea674dfa739af50011034bdfa
usb: gadget: f_fs: handle control requests not directed to interface or endpoint

Introduces a new FunctionFS descriptor flag named
FUNCTIONFS_ALL_CTRL_RECIP. When this flag is enabled, control requests,
which are not explicitly directed to an interface or endpoint, can be
handled.

This allows FunctionFS userspace drivers to process non-standard
control requests.

Signed-off-by: Felix Hädicke <felixhaedicke@web.de>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/f_fs.c
include/uapi/linux/usb/functionfs.h