umber-kernel/drivers/usb/gadget
Andrey Konovalov 37b9dd0d11 usb: raw-gadget: do not limit transfer length
Drop the check on the maximum transfer length in Raw Gadget for both
control and non-control transfers.

Limiting the transfer length causes a problem with emulating USB devices
whose full configuration descriptor exceeds PAGE_SIZE in length.

Overall, there does not appear to be any reason to enforce any kind of
transfer length limit on the Raw Gadget side for either control or
non-control transfers, so let's just drop the related check.

Cc: stable <stable@kernel.org>
Fixes: f2c2e71764 ("usb: gadget: add raw-gadget interface")
Signed-off-by: Andrey Konovalov <andreyknvl@gmail.com>
Link: https://patch.msgid.link/a6024e8eab679043e9b8a5defdb41c4bda62f02b.1761085528.git.andreyknvl@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-10-22 10:00:40 +02:00
..
function USB/Thunderbolt changes for 6.18-rc1 2025-10-04 16:07:08 -07:00
legacy usb: raw-gadget: do not limit transfer length 2025-10-22 10:00:40 +02:00
udc Merge patch series "usb: gadget: Refactor function drivers to use __free() cleanup" 2025-09-17 12:44:55 +02:00
Kconfig
Makefile
composite.c
config.c
configfs.c usb: gadget: configfs: Correctly set use_os_string at bind 2025-09-06 15:22:36 +02:00
configfs.h
epautoconf.c
functions.c
u_f.c
u_os_desc.h
usbstring.c