[PATCH 0/2] usb: gadget: dwc2: Prepare for UDC core migration
Mattijs Korpershoek
mkorpershoek at kernel.org
Fri Jul 3 15:29:35 CEST 2026
Jens Wiklander started to migrate the DWC3 driver to a more recent
version of linux (v6.16) [1].
This migration also updates the UDC core and most notably how drivers
perform their endpoint matching.
While testing Jens' series on a Khadas VIM3 board, I reported [2] that
I can no longer bind the fastboot gadget to the dwc2 otg driver.
This series aims to fix the problems I've reported.
They can be applied to master/next (as they should not break
anything with the current UDC core). They can also be applied after we
merge Jens' work.
It has been tested on khadas-vim3_android_defconfig with the next branch
using base commit e800cc67f5b6 ("mtd: spi-nor: Add gd55lb02gf chips")
"""
U-Boot 2026.07-rc5-g89106934d3fb (Jul 03 2026 - 15:16:29 +0200) khadas-vim3
Model: Khadas VIM3
SoC: Amlogic Meson G12B (A311D) Revision 29:b (10:2)
DRAM: 2 GiB (total 3.8 GiB)
Core: 408 devices, 37 uclasses, devicetree: separate
MMC: mmc at ffe03000: 0, mmc at ffe05000: 1, mmc at ffe07000: 2
MMC Device -1 not foundm MMC...
*** Warning - No MMC card found, using default environment
In: usbkbd,serial
Out: vidconsole,serial
Err: vidconsole,serial
Net: eth0: ethernet at ff3f0000
Hit any key to stop autoboot: 0
=> fastboot usb 0
crq->brequest:0x0
"""
[1] https://lore.kernel.org/u-boot/20260629084507.3254232-1-jens.wiklander@linaro.org/
[2] https://lore.kernel.org/u-boot/87v7az6l03.fsf@kernel.org/
Signed-off-by: Mattijs Korpershoek <mkorpershoek at kernel.org>
---
Mattijs Korpershoek (2):
usb: gadget: dwc2: Use usb_ep_set_maxpacket_limit() for fifo sizes
usb: gadget: dwc2: Set endpoint capabilities via .caps field
drivers/usb/gadget/dwc2_udc_otg.c | 26 ++++++++++++++++++++++----
1 file changed, 22 insertions(+), 4 deletions(-)
---
base-commit: e800cc67f5b6cb50a20f37c993ec1cd4063bdbd3
change-id: 20260703-usb-prep-dwc3-sync-f564883ebd14
Best regards,
--
Mattijs Korpershoek <mkorpershoek at kernel.org>
More information about the U-Boot
mailing list