
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(-)