From: Akash Kumar Date: Thu, 1 Aug 2024 05:30:03 +0000 (+0530) Subject: usb: gadget: Increase max configuration interface to 32 X-Git-Tag: v6.12-rc1~42^2~115 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=08d6fd691bdd5d6e7881ce42ca6774ed92b10896;p=thirdparty%2Fkernel%2Flinux.git usb: gadget: Increase max configuration interface to 32 Currently, max configuration interfaces are limited to 16, which fails for compositions containing 10 UVC configurations with interrupt ep disabled along with other configurations , and we see bind failures while allocating interface ID in uvc bind. Increase max configuration interface to 32 to support any large compositions limited to same size as usb device endpoints as interfaces cannot be more than endpoints. Signed-off-by: Akash Kumar Link: https://lore.kernel.org/r/20240801053003.15153-1-quic_akakum@quicinc.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/usb/composite.h b/include/linux/usb/composite.h index af3cd2aae4bcb..6e38fb9d21174 100644 --- a/include/linux/usb/composite.h +++ b/include/linux/usb/composite.h @@ -256,7 +256,7 @@ int config_ep_by_speed(struct usb_gadget *g, struct usb_function *f, struct usb_ep *_ep); int usb_func_wakeup(struct usb_function *func); -#define MAX_CONFIG_INTERFACES 16 /* arbitrary; max 255 */ +#define MAX_CONFIG_INTERFACES 32 /** * struct usb_configuration - represents one gadget configuration