Skip to content

usb: dwc3: Disable susphy during initialization

Thinh Nguyen linux-usb stable 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 19 repliesSuperseded

Changes in v2 from the cover letter

- Fix xhci-rzv2m build issue

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2usb: xhci-plat: Don't include xhci.hdrivers/usb/host/xhci-plat.h drivers/usb/host/xhci-rzv2m.c+4 -10 replies
2/2usb: dwc3: core: Prevent phy suspend during initdrivers/usb/dwc3/core.c drivers/usb/dwc3/core.h drivers/usb/dwc3/gadget.c +1 more+68 -520 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: Disable susphy during initialization

We notice some platforms set "snps,dis_u3_susphy_quirk" and "snps,dis_u2_susphy_quirk" when they should not need to. Just make sure that the GUSB3PIPECTL.SUSPENDENABLE and GUSB2PHYCFG.SUSPHY are clear during initialization. The host initialization involved xhci. So the dwc3 needs to implement the xhci_plat_priv->plat_start() for xhci to re-enable the suspend bits.

Since there's a prerequisite patch to drivers/usb/host/xhci-plat.h that's not a fix patch, this series should go on Greg's usb-testing branch instead of usb-linus.

Changes in v2:
- Fix xhci-rzv2m build issue

Thinh Nguyen (2):
usb: xhci-plat: Don't include xhci.h
usb: dwc3: core: Prevent phy suspend during init

 drivers/usb/dwc3/core.c       | 90 +++++++++++++++--------------------
 drivers/usb/dwc3/core.h       |  1 +
 drivers/usb/dwc3/gadget.c     |  2 +
 drivers/usb/dwc3/host.c       | 27 +++++++++++
 drivers/usb/host/xhci-plat.h  |  4 +-
 drivers/usb/host/xhci-rzv2m.c |  1 +
 6 files changed, 72 insertions(+), 53 deletions(-)

base-commit: 3d122e6d27e417a9fa91181922743df26b2cd679

Signature · 1 line
2.28.0