Skip to content

USB: dwc: Add workaround for host mode VBUS glitch when boot

Frank Li imx linux-devicetree linux-usb lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 2 repliesIn review
  2. v33 patches 1 replySuperseded
  3. v23 patches 1 replySuperseded

Change from v1 to v2 from the cover letter

- splite xhci.h to xchi-port.h and xhci-caps.h to shared marco.
- add quirk subfix
- fixed checkpatch error with --strict.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3XHCI: Separate PORT and CAPs macros into dedicated filedrivers/usb/host/xhci-caps.h drivers/usb/host/xhci-port.h drivers/usb/host/xhci.h+264 -2590 replies
2/3dt-bindings: usb: dwc3: Add snps,host-vbus-glitches-quirk avoid vbus glitchDocumentation/devicetree/bindings/usb/snps,dwc3.yaml+7 -02 replies
3/3usb: dwc3: Add workaround for host mode VBUS glitch when bootdrivers/usb/dwc3/core.c drivers/usb/dwc3/core.h drivers/usb/dwc3/host.c+56 -00 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchPeter ChenThinh Nguyen
1/3
2/3R-b
3/3R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/3] USB: dwc: Add workaround for host mode VBUS glitch when boot

Chagne from v2 to v3
- see notes at patch

Change from v1 to v2:
- splite xhci.h to xchi-port.h and xhci-caps.h to shared marco.
- add quirk subfix
- fixed checkpatch error with --strict.

left one warning to align existed code style.

CHECK: Alignment should match open parenthesis
+ dwc->host_vbus_glitches_quirk = device_property_read_bool(dev,
+ "snps,host-vbus-glitches-quirk");

Frank Li (1):
XHCI: Separate PORT and CAPs macros into dedicated file

Ran Wang (2):
dt-bindings: usb: dwc3: Add snps,host-vbus-glitches-quirk avoid vbus
glitch
usb: dwc3: Add workaround for host mode VBUS glitch when boot

 .../devicetree/bindings/usb/snps,dwc3.yaml    |   7 +
 drivers/usb/dwc3/core.c                       |   3 +
 drivers/usb/dwc3/core.h                       |   2 +
 drivers/usb/dwc3/host.c                       |  51 ++++
 drivers/usb/host/xhci-caps.h                  |  85 ++++++
 drivers/usb/host/xhci-port.h                  | 176 ++++++++++++
 drivers/usb/host/xhci.h                       | 262 +-----------------
 7 files changed, 327 insertions(+), 259 deletions(-)
 create mode 100644 drivers/usb/host/xhci-caps.h
 create mode 100644 drivers/usb/host/xhci-port.h
Signature · 1 line
2.34.1