Skip to content

usb: dwc3: Introduce DWC_usb32 IP

Thinh Nguyen linux-usb 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v12 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Change the macro to avoid constant to constant comparison static analysis warnings. (DWC3x_VERSION_ANY == DWC3x_VERSION_XXX) => !(DWC3x_VERSION_XXX)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2usb: dwc3: Add support for DWC_usb32 IPdrivers/usb/dwc3/core.c drivers/usb/dwc3/core.h drivers/usb/dwc3/gadget.c +1 more+97 -971 reply
2/2usb: dwc3: Get MDWIDTH for DWC_usb32drivers/usb/dwc3/core.h drivers/usb/dwc3/debugfs.c drivers/usb/dwc3/gadget.c+22 -20 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/2] usb: dwc3: Introduce DWC_usb32 IP

This patch series adds support to Synopsys DWC_usb32 controller. The controller supports dual-lane and speed up to 20 Gbps, and the DWC3 driver will drive this controller.

The configuration and programming model for DWC_usb32 is very similar to DWC_usb31 and DWC_usb30. This series is one of the first sets, and it only includes the necessary changes to recognize, initialize, and run DWC_usb32. It includes:
* New IP checking scheme
* IP Checks for DWC_usb32
* New MDWIDTH parameter for DWC_usb32

The change to support lane count and lane speed mantissa will come in a separate series. Hopefully this helps simplify the review process and help push the change in steps.

This series is base off of Felipe's testing/next branch:
https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git/log/?h=testing/next

It also depends on the following patches in Felipe's testing/fixes branch:
usb: dwc3: Fix GTXFIFOSIZ.TXFDEP macro name
usb: dwc3: gadget: Properly set maxpacket limit

https://patchwork.kernel.org/cover/11283761/

https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git/log/?h=testing/fixes

Changes in v2:
- Change the macro to avoid constant to constant comparison static analysis warnings. (DWC3x_VERSION_ANY == DWC3x_VERSION_XXX) => !(DWC3x_VERSION_XXX)

Thinh Nguyen (2):
usb: dwc3: Add support for DWC_usb32 IP
usb: dwc3: Get MDWIDTH for DWC_usb32

 drivers/usb/dwc3/core.c    | 49 ++++++++++++---------------
 drivers/usb/dwc3/core.h    | 69 +++++++++++++++++++++----------------
 drivers/usb/dwc3/debugfs.c | 14 ++++++--
 drivers/usb/dwc3/gadget.c  | 84 ++++++++++++++++++++++++----------------------
 drivers/usb/dwc3/host.c    |  2 +-
 5 files changed, 119 insertions(+), 99 deletions(-)
Signature · 1 line
2.11.0