Skip to content

usb: dwc2: Fixes and improvements

Guenter Roeck linux-usb lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 20 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4usb: dwc2: Simplify and fix DMA alignment codedrivers/usb/dwc2/hcd.c+35 -3213 replies
2/4usb: dwc2: Do not update data length if it is 0 on inbound transfersdrivers/usb/dwc2/hcd.c+8 -72 replies
3/4usb: dwc2: Abort transaction after errors with unknown reasondrivers/usb/dwc2/hcd_intr.c+12 -02 replies
4/4usb: dwc2: Make "trimming xfer length" a debug messagedrivers/usb/dwc2/hcd_intr.c+1 -12 replies

Reviews trailers per patch

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

PatchDouglas Anderson
1/4
2/4R-b
3/4R-b
4/4R-b

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

Read the v1 thread

Cover letter [RFT PATCH 0/4] usb: dwc2: Fixes and improvements

This series addresses the following problems:

- Fix receive buffer corruptions
- Fix receive transfers with 0 byte transfer length
- Abort transactions after unknown receive errors if the receive buffer is full
- Reduce "trimming xfer length" logging noise

The problems fixed with this series were observed when connecting a DM9600 Ethernet adapter to Veyron Chromebooks such as the ASUS Chromebook C201PA. The series was tested extensively with this and other adapters.

The observed problems are also reported when tethering various phones, so test coverage with such phones would be very appreciated.

----------------------------------------------------------------
Guenter Roeck (4):
usb: dwc2: Simplify and fix DMA alignment code
usb: dwc2: Do not update data length if it is 0 on inbound transfers
usb: dwc2: Abort transaction after errors with unknown reason
usb: dwc2: Make "trimming xfer length" a debug message

 drivers/usb/dwc2/hcd.c      | 82 ++++++++++++++++++++++++---------------------
 drivers/usb/dwc2/hcd_intr.c | 14 +++++++-
 2 files changed, 56 insertions(+), 40 deletions(-)