linux-stable/drivers/usb/gadget
Daniel Scally 130c4dcbe8 usb: gadget: uvc: Disable interrupt endpoint by default
The f_uvc code includes an interrupt endpoint against the VideoControl
interface. According to section 2.4.2 of the UVC specification however
this endpoint is optional in at least some cases:

"This endpoint is optional, but may be mandatory under certain
conditions"

The conditions enumerated are whether...

1. The device supports hardware triggers
2. The device implements any AutoUpdate controls
3. The device implements any Asynchronous controls

As all of those things are implementation dependent, this endpoint
might be unnecessary for some users. Further to that it is unusable
in the current implementation as there is no mechanism within the
UVC gadget driver that allows data to be sent over that endpoint.
Disable the interrupt endpoint by default, but check whether the
user has asked for it to be enabled in configfs and continue to
generate it if so.

Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
Link: https://lore.kernel.org/r/20230130105045.120886-4-dan.scally@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-02-02 11:16:17 +01:00
..
function usb: gadget: uvc: Disable interrupt endpoint by default 2023-02-02 11:16:17 +01:00
legacy Merge 6.2-rc5 into usb-next 2023-01-23 15:38:08 +01:00
udc xhci: split out rcar/rz support from xhci-plat.c 2023-02-02 11:12:59 +01:00
composite.c usb: gadget: Use correct APIs and data types for UUID handling 2023-01-31 10:37:29 +01:00
config.c
configfs.c usb: gadget: configfs: Restrict symlink creation is UDC already binded 2023-02-02 11:14:14 +01:00
configfs.h
epautoconf.c usb: gadget: fix for a typo that conveys logically-inverted information. 2021-09-14 10:27:54 +02:00
functions.c
Kconfig usb: uvc: move uvc_fmts and uvc_format_by_guid to own compile unit 2023-01-31 09:40:42 +01:00
Makefile usb: gadget: Makefile: remove ccflags-y 2022-03-18 12:56:08 +01:00
u_f.c
u_f.h
u_os_desc.h
usbstring.c