All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] usb: gadget: dwc2: Prepare for UDC core migration
@ 2026-07-03 13:29 Mattijs Korpershoek
  2026-07-03 13:29 ` [PATCH 1/2] usb: gadget: dwc2: Use usb_ep_set_maxpacket_limit() for fifo sizes Mattijs Korpershoek
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Mattijs Korpershoek @ 2026-07-03 13:29 UTC (permalink / raw)
  To: u-boot
  Cc: Lukasz Majewski, Marek Vasut, Tom Rini, Ilias Apalodimas,
	Jonas Karlman, Mattijs Korpershoek

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@ffe03000: 0, mmc@ffe05000: 1, mmc@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@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@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@kernel.org>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-07-22  7:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-03 13:29 [PATCH 0/2] usb: gadget: dwc2: Prepare for UDC core migration Mattijs Korpershoek
2026-07-03 13:29 ` [PATCH 1/2] usb: gadget: dwc2: Use usb_ep_set_maxpacket_limit() for fifo sizes Mattijs Korpershoek
2026-07-09  9:21   ` Ilias Apalodimas
2026-07-03 13:29 ` [PATCH 2/2] usb: gadget: dwc2: Set endpoint capabilities via .caps field Mattijs Korpershoek
2026-07-09  9:22   ` Ilias Apalodimas
2026-07-22  6:54 ` [PATCH 0/2] usb: gadget: dwc2: Prepare for UDC core migration Mattijs Korpershoek via U-Boot
2026-07-22  7:02   ` Mattijs Korpershoek via U-Boot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.