Skip to content

usb: dwc3: Fixes and improvements for DWC3 driver

Lukasz Majewski u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11usb: composite: Add .reset callback to usb_gadget_driver structuredrivers/usb/gadget/composite.c+1 -00 replies
2/11usb: dwc3: linux-compat: Fix: Adding missing include filesdrivers/usb/dwc3/linux-compat.h+3 -01 reply
3/11usb: dwc3: Add BIT() macrodrivers/usb/dwc3/core.h+1 -01 reply
4/11usb: dwc3: make dwc3_set_mode to staticdrivers/usb/dwc3/core.c drivers/usb/dwc3/core.h+1 -21 reply
5/11usb: dwc3: Set usbdrd phy ctrl and mode in dwc3 coredrivers/usb/dwc3/core.c drivers/usb/dwc3/core.h include/dwc3-uboot.h+79 -11 reply
6/11usb: dwc3: add a workaround for too small OUT requestsdrivers/usb/dwc3/gadget.c+6 -01 reply
6/11usb: dwc3: add a workaround for too small OUT requests+0 -01 reply
7/11usb: dwc3: gadget: add common endpoint configuration for dwc3 udc driverdrivers/usb/gadget/epautoconf.c drivers/usb/gadget/gadget_chips.h+28 -10 replies
8/11usb: dwc3: optimize interrupt loopdrivers/usb/dwc3/core.c drivers/usb/dwc3/gadget.c+13 -90 replies
9/11usb: dwc3: gadget: Set all ctrl fields of Transfer Control Blocks (TRB) to be LSTdrivers/usb/dwc3/gadget.c+2 -130 replies
10/11usb: dwc3: gadget: Set non EP0 max packet limit to 512Bdrivers/usb/dwc3/gadget.c+1 -10 replies
11/11usb: dwc3: Correct clean up code for requestsdrivers/usb/dwc3/gadget.c+14 -240 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [PATCH 00/11] usb: dwc3: Fixes and improvements for DWC3 driver

Those patches should be applied on top of Kishon Vijay Abraham I work (v1) [40 patches]:

https://patchwork.ozlabs.org/patch/442467/
"dra7xx: am43xx: add dwc3 gadget driver support and enable dfu"

Those changes fixes composite, DFU and UMS gadgets - as a result relevant tests (available at test/{dfu|ums} pass.

Test HW: Odroid XU3 - Exynos5422

There is one important thing to note:

Since on our setup Data and Instruction Caches seems to be broken (or at least don't behave as expected) the comments regarding cache management in DWC3 still applies.

I will look on them at v2 of this patch set. This code should be also easily applicable on top of v2.

Inha Song (1):
usb: dwc3: Add BIT() macro

Joonyoung Shim (1):
usb: dwc3: make dwc3_set_mode to static

Marek Szyprowski (3):
usb: dwc3: add a workaround for too small OUT requests
usb: dwc3: gadget: add common endpoint configuration for dwc3 udc
driver
usb: dwc3: optimize interrupt loop

?ukasz Majewski (6):
usb: composite: Add .reset callback to usb_gadget_driver structure
usb: dwc3: linux-compat: Fix: Adding missing include files
usb: dwc3: Set usbdrd phy ctrl and mode in dwc3 core
usb: dwc3: gadget: Set all ctrl fields of Transfer Control Blocks
(TRB) to be LST
usb: dwc3: gadget: Set non EP0 max packet limit to 512B
usb: dwc3: Correct clean up code for requests

 drivers/usb/dwc3/core.c           | 86 +++++++++++++++++++++++++++++++++++----
 drivers/usb/dwc3/core.h           |  3 +-
 drivers/usb/dwc3/gadget.c         | 76 ++++++++++++++++------------------
 drivers/usb/dwc3/linux-compat.h   |  3 ++
 drivers/usb/gadget/composite.c    |  1 +
 drivers/usb/gadget/epautoconf.c   | 21 +++++++++-
 drivers/usb/gadget/gadget_chips.h |  8 ++++
 include/dwc3-uboot.h              |  2 +
 8 files changed, 149 insertions(+), 51 deletions(-)
Signature · 1 line
2.0.0.rc2