Skip to content

usb: dwc2: Refactor and update USB DWC2 driver

Kongyang Liu u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2usb: dwc2: Extract USB DWC2 register definitionsdrivers/usb/common/Makefile drivers/usb/common/dwc2_core.c drivers/usb/common/dwc2_core.h +5 more+988 -13983 replies
2/2usb: dwc2: Update reset method for host and device modedrivers/usb/common/dwc2_core.c drivers/usb/common/dwc2_core.h drivers/usb/gadget/dwc2_udc_otg.c +1 more+55 -340 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] usb: dwc2: Refactor and update USB DWC2 driver

This series improves the USB DWC2 driver by extracting register definitions into a common file for better readability and updating the reset method to reflect changes in version 4.20a, including the new GRSTCTL_CSFTRST_DONE bit for reset completion indication.

Kongyang Liu (2):
usb: dwc2: Extract USB DWC2 register definitions
usb: dwc2: Update reset method for host and device mode

 drivers/usb/common/Makefile                |   2 +
 drivers/usb/common/dwc2_core.c             | 103 +++
 drivers/usb/common/dwc2_core.h             | 557 ++++++++++++++++
 drivers/usb/gadget/dwc2_udc_otg.c          | 124 ++--
 drivers/usb/gadget/dwc2_udc_otg_regs.h     | 247 +------
 drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c | 306 ++++-----
 drivers/usb/host/dwc2.c                    | 392 +++++------
 drivers/usb/host/dwc2.h                    | 736 ---------------------
 8 files changed, 1039 insertions(+), 1428 deletions(-)
 create mode 100644 drivers/usb/common/dwc2_core.c
 create mode 100644 drivers/usb/common/dwc2_core.h
Signature · 1 line
2.41.0