Skip to content

dwc2 fixes for edge cases on hikey

John Stultz lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 3 repliesIn review
  2. v1 posting 3/33 patches 19 repliesSuperseded
  3. v1 posting 2/33 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 posting 1/33 patches2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3usb: dwc2: Improve gadget state disconnection handlingdrivers/usb/dwc2/hcd.c+5 -21 reply
2/3usb: dwc2: Error out of dwc2_hsotg_ep_disable() if we're in host modedrivers/usb/dwc2/gadget.c+5 -01 reply
3/3usb: dwc2: Fix UDC state trackingdrivers/usb/dwc2/gadget.c+2 -01 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchMinas Harutyunyan
1/3A-b T-b
2/3A-b T-b
3/3A-b T-b

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

Read the v2 thread

Cover letter [PATCH v2 0/3] dwc2 fixes for edge cases on hikey

So here is v2 of a few dwc2 fixes that I've been using with HiKey. I'm not totally sure these are all ideal, but they avoid edge case issues that we have been running into with switching between gadget mode and host mode.

I'd guess the first two are potentially -stable material, and the last might be worth sending to -stable too, as its a relatively simple fix, but to my understanding the UDC state tracking has always been broken so its not really a regression. But still.

thanks
-john

Cc Wei Xu <[email protected]>
Cc Guodong Xu <[email protected]>
Cc Amit Pundir <[email protected]>
Cc YongQin Liu <[email protected]>
Cc John Youn <[email protected]>
Cc Minas Harutyunyan <[email protected]>
Cc Douglas Anderson <[email protected]>
Cc Chen Yu <[email protected]>
Cc Felipe Balbi <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>

John Stultz (3):
usb: dwc2: Improve gadget state disconnection handling
usb: dwc2: Error out of dwc2_hsotg_ep_disable() if we're in host mode
usb: dwc2: Fix UDC state tracking

 drivers/usb/dwc2/gadget.c | 7 +++++++
 drivers/usb/dwc2/hcd.c    | 7 +++++--
 2 files changed, 12 insertions(+), 2 deletions(-)
Signature · 1 line
2.7.4