All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mattijs Korpershoek <mkorpershoek@kernel.org>
To: u-boot@lists.denx.de
Cc: Lukasz Majewski <lukma@denx.de>, Marek Vasut <marex@nabladev.com>,
	 Tom Rini <trini@konsulko.com>,
	 Ilias Apalodimas <ilias.apalodimas@linaro.org>,
	 Jonas Karlman <jonas@kwiboo.se>,
	 Mattijs Korpershoek <mkorpershoek@kernel.org>
Subject: [PATCH 0/2] usb: gadget: dwc2: Prepare for UDC core migration
Date: Fri, 03 Jul 2026 15:29:35 +0200	[thread overview]
Message-ID: <20260703-usb-prep-dwc3-sync-v1-0-1352bc238c9b@kernel.org> (raw)

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>


             reply	other threads:[~2026-07-03 13:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-03 13:29 Mattijs Korpershoek [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260703-usb-prep-dwc3-sync-v1-0-1352bc238c9b@kernel.org \
    --to=mkorpershoek@kernel.org \
    --cc=ilias.apalodimas@linaro.org \
    --cc=jonas@kwiboo.se \
    --cc=lukma@denx.de \
    --cc=marex@nabladev.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.