Skip to content

USB Fixes for Gadget Mode on DWC3

Chris Morgan u-boot 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 12 repliesIn review
  2. v12 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Take the existing dwc3_core_soft_reset() function from the upstream Linux core.c file. This necessitates including another patch to add support from upstream Linux for the ip and version_type field and accompanying macros and functions to initialize it.
- Specify the timeout changes made in the gadget driver as part of a separate patch and note the change is required.
- Remove change in dwc3_ref_clk_period() as it was not intended to be included.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4usb: dwc3: core: Add ip and version_type support from Linuxdrivers/usb/dwc3/core.c drivers/usb/dwc3/core.h+81 -51 reply
2/4usb: dwc3: Increase DWC3 controller halt timeoutdrivers/usb/dwc3/gadget.c+2 -21 reply
3/4usb: dwc3: gadget: Don't send unintended link state changedrivers/usb/dwc3/gadget.c drivers/usb/dwc3/gadget.h+21 -91 reply
4/4usb: dwc3: core: improve reset sequencedrivers/usb/dwc3/core.c+39 -278 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchMattijs Korpershoek
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH V2 0/4] USB Fixes for Gadget Mode on DWC3

From: Chris Morgan <[email protected]>

In order to get gadget mode functional (for fastboot and ums) I need to pull two patches in from mainline Linux. After applying these two patches to U-Boot I am able to use ums and fastboot on my Anbernic RG353P device for testing purposes.

Changes since V1:
- Take the existing dwc3_core_soft_reset() function from the upstream Linux core.c file. This necessitates including another patch to add support from upstream Linux for the ip and version_type field and accompanying macros and functions to initialize it.
- Specify the timeout changes made in the gadget driver as part of a separate patch and note the change is required.
- Remove change in dwc3_ref_clk_period() as it was not intended to be included.

Chris Morgan (4):
usb: dwc3: core: Add ip and version_type support from Linux
usb: dwc3: Increase DWC3 controller halt timeout
usb: dwc3: gadget: Don't send unintended link state change
usb: dwc3: core: improve reset sequence

 drivers/usb/dwc3/core.c   | 92 +++++++++++++++++++++++++--------------
 drivers/usb/dwc3/core.h   | 60 +++++++++++++++++++++++++
 drivers/usb/dwc3/gadget.c | 20 ++++-----
 drivers/usb/dwc3/gadget.h | 14 ++++++
 4 files changed, 143 insertions(+), 43 deletions(-)
Signature · 1 line
2.43.0