stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] usb: dwc3: Disable susphy during initialization
@ 2024-04-17 23:14 Thinh Nguyen
  2024-04-17 23:14 ` [PATCH v2 1/2] usb: xhci-plat: Don't include xhci.h Thinh Nguyen
  2024-04-17 23:14 ` [PATCH v2 2/2] usb: dwc3: core: Prevent phy suspend during init Thinh Nguyen
  0 siblings, 2 replies; 3+ messages in thread
From: Thinh Nguyen @ 2024-04-17 23:14 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Thinh Nguyen, Mathias Nyman
  Cc: John Youn, linux-usb, stable

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
-- 
2.28.0

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-04-17 23:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-17 23:14 [PATCH v2 0/2] usb: dwc3: Disable susphy during initialization Thinh Nguyen
2024-04-17 23:14 ` [PATCH v2 1/2] usb: xhci-plat: Don't include xhci.h Thinh Nguyen
2024-04-17 23:14 ` [PATCH v2 2/2] usb: dwc3: core: Prevent phy suspend during init Thinh Nguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).