Skip to content

RFC usb: xhci: Introduce xhci-snps

Thinh Nguyen linux-devicetree linux-usb 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4dt-bindings: usb: usb-xhci: Add xhci-snps-quirksDocumentation/devicetree/bindings/usb/usb-xhci.yaml+4 -04 replies
2/4usb: dwc3: host: Always set xhci-snps-quirksdrivers/usb/dwc3/host.c+3 -10 replies
3/4usb: dwc3: core: Share global register access with xhci driverdrivers/usb/dwc3/core.c+2 -20 replies
4/4usb: xhci: Introduce Synopsys glue extension for DWC_usb3xdrivers/usb/host/Kconfig drivers/usb/host/Makefile drivers/usb/host/xhci-plat.c +3 more+271 -02 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/4] usb: xhci: Introduce xhci-snps

Synopsys DWC_usb3x IPs are used on many different platforms. Since they share the same IP, often the quirks are common across different platforms and versions. This drives the need to find a way to handle all the common (and platform specific) quirks and separate its logic from dwc3 and xhci core logic. Hopefully it can also reduce introducing new device properties while maintaining abstraction.

So, let's create a xhci-snps glue extension that can apply to xhci-plat and xhci-pci glue drivers and teach it to handle DWC_usb3x hosts. For this particular change, we'll start with xhci-plat glue driver.

NOTE: This is a quick implementation of how I'd imagine to handle this. I apologize if it may lack documentation. It doesn't have all the common quirks added. I'd like to receive some feedbacks before moving forward.

Many thanks!
Thinh

Thinh Nguyen (4):
dt-bindings: usb: usb-xhci: Add xhci-snps-quirks
usb: dwc3: host: Always set xhci-snps-quirks
usb: dwc3: core: Share global register access with xhci driver
usb: xhci: Introduce Synopsys glue extension for DWC_usb3x

 .../devicetree/bindings/usb/usb-xhci.yaml     |   4 +
 drivers/usb/dwc3/core.c                       |   4 +-
 drivers/usb/dwc3/host.c                       |   4 +-
 drivers/usb/host/Kconfig                      |   8 +
 drivers/usb/host/Makefile                     |   3 +
 drivers/usb/host/xhci-plat.c                  |  40 ++++
 drivers/usb/host/xhci-plat.h                  |   3 +
 drivers/usb/host/xhci-snps.c                  | 185 ++++++++++++++++++
 drivers/usb/host/xhci-snps.h                  |  32 +++
 9 files changed, 280 insertions(+), 3 deletions(-)
 create mode 100644 drivers/usb/host/xhci-snps.c
 create mode 100644 drivers/usb/host/xhci-snps.h

base-commit: 97fa5887cf283bb75ffff5f6b2c0e71794c02400

Signature · 1 line
2.28.0